I use UIAlertView to make a popup after starting the application. It works fine, but I want the popup to appear the first time the application starts. At the moment, I have a UIAlertView in the AppDelegate class, in the applicationDidFinishLaunching method. Here is my code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { sleep(4); UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Welcome!" message:@"SAMPLE!!!" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; [alert release];
I am new to application development, so sorry if this is easy.
iphone cocoa-touch xcode uialertview
user309245
source share