I have this warning (disclaimer) that appears when the application ends. It works (now my application is much slower), but I also want to exit the application if the user clicks no, thanks . I think I should use clickedButtonAtIndex :.
1. Can someone help me with this?
2. is viewDidLoad the best method to trigger alertView when the application starts?
3. Is there a reason why it now takes more time for my application to start when I create and launch it?
-(void)viewDidLoad { UIAlertView *disclaimer = [[UIAlertView alloc] initWithTitle: @"DISCLAIMER" message:@"This Application is provided without any express or implied warranty. Errors or omissions in either the software or the data are not guaranteed against. The application is not intented to replace official documentation or operational procedure. In no event shal the developer be held liable for any direct or indirect damages arising from the use of this application" delegate:self cancelButtonTitle:@"No, thanks" otherButtonTitles:@"Accept", nil]; [disclaimer show]; [disclaimer release]; [super viewDidLoad]; }
source share