Take a look at the following code, the problem is that the AlertView does not show up, even if I see in debug that the code is been executed.
Please advice.
Many thanks
Eran
-(void)displayABC:(id)sender
{
static int index = 0;
NSString *path = [[NSBundle mainBundle] pathForResource:@"ABC" ofType:@"plist"];
NSArray *ABCArray = [NSArray arrayWithContentsOfFile:path];
if(index < [ABCArray count])
[authButton setTitle:[ABCArray objectAtIndex:index] forState:UIControlStateNormal];
index++;
if (index > [ABCArray count]){
UIAlertView *endOfABCAlertView = [[UIAlertView alloc] initWithTitle:@"XXX" message:@"XXX" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil];
[self.view addSubview:endOfABCAlertView];
}
}
I am using the latest Xcode 4.6.3 (is it a bug with the simulator? maybe ?)