Iphone UIAlertView在应用加载时显示,打开

Iphone UIAlertView在应用加载时显示,打开,iphone,xcode,uialertview,Iphone,Xcode,Uialertview,如何在应用程序打开、加载时显示alertview 与用户每次打开应用程序时一样,他看到警报…在应用程序委托类中显示警报视图,在applicationdFinishLaunching:和applicationWillEnterForeground:@Rafeel将此UIAlertView放在你的did使用AppDelegate的options方法完成启动时,当你的应用程序启动时,你总是会得到UIAlertView UIAlertView *confirmAlertView=[[UIAlertVie

如何在应用程序打开、加载时显示alertview


与用户每次打开应用程序时一样,他看到警报…

在应用程序委托类中显示警报视图,在
applicationdFinishLaunching
:和
applicationWillEnterForeground

@Rafeel将此
UIAlertView
放在你的
did使用AppDelegate的options
方法完成启动时,当你的应用程序启动时,你总是会得到
UIAlertView

UIAlertView *confirmAlertView=[[UIAlertView alloc]initWithTitle:@"Saved" message:@"Want to save!!" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:@"Cancel",nil];
    [confirmAlertView show];
    [confirmAlertView release];

希望它能帮助你

使用以下appDelegate方法写入警报状态

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
      UIAlertView *alert_View = [[[UIAlertView alloc] initWithTitle:@"Your Title" message:@"Your Message" delegate:self cancelButtonTitle:nil otherButtonTitles:@"YES",@"NO",nil] autorelease];
    [alert_View show];
}