I have a one-button iphone app. When pressed, it calls the code:
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"test"
message:@"test"
delegate:self
cancelButtonTitle:@"Ok"
otherButtonTitles: nil];
[alert show];
The application supports ARC.
The problem is that if I click the "OK" button in the warning, the application crashes with EXC_BAD_ADDRESS - perhaps due to the warning it is already deleted by the arc.
What is recommended to solve this problem? without adding viewcontroller property
thank
source
share