- (IBAction)OnBT1:(id)sender
{
// NSString*string = [[NSString alloc]initWithString:@"One;Two;Three;Four"];//4 OK
NSString*string = [[NSString alloc]initWithString:@"One;Two;Three;Four;"];//4 OK
NSArray *array = [string componentsSeparatedByString:@";"];
int count =[array count];
NSLog(@"count = %d",count);
id v11;
NSString *newRecord=@"";
for (int i=0; i<count; i++)
{
v11 = [array objectAtIndex:i];
newRecord=v11;
//newRecord = [NSString stringWithFormat:@"%@",v11];
NSLog(@"value =%@ length = %d",newRecord,[newRecord length]);
}
}