2011-01-19 10 views

答えて

0

ショーapplicationDidFinishLaunchingにおけるアプリケーションデリゲートクラスでalertview、:とapplicationWillEnterForegroundに:

0

はあなたのAppDelegateのごdidFinishLaunchingWithOptions方法でこのUIAlertViewを入れ@Rafeel、アプリが

を起動するときには、必ず UIAlertViewを取得します
UIAlertView *confirmAlertView=[[UIAlertView alloc]initWithTitle:@"Saved" message:@"Want to save!!" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:@"Cancel",nil]; 
    [confirmAlertView show]; 
    [confirmAlertView release]; 

希望すると助かります!

1

、以下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]; 
} 
を警告なステートメントを書きます
関連する問題