I struct at a point in my application.I have an array object called time and a global int variable as index..so when I need to use both I need to type cast array object to integer value.How can I do this?Please help..
NSArray *time=[NSArray arrayWithObjects:@"1.08",@"1.12",@"1.14",@"1.18",@"1.20",@"1.24",@"1.25",@"1.29",@"1.30",@"1.34",@"1.45",@"1.50",@"1.51",@"1.55",@"1.56",@"2.00",@"2.01",@"2.06",@"2.07",@"2.11",@"2.12",@"2.16",@"2.17",@"2.21",nil];
index = 0;
[self performSelector:@selector(startAnimation) withObject:self afterDelay:[time objectAtIndex:index]];
This is my code,but it is giving error and telling to typecast