UIAlert View-for yes/no condition

前端 未结 2 748
小鲜肉
小鲜肉 2021-01-29 12:06

my app needs alert msg and with yes button click another alert msg which decides the final action. I have used - (void)alertView:(UIAlertView *)alertView didDismissWithB

2条回答
  •  执念已碎
    2021-01-29 13:03

    Check this out http://www.timeister.com/2010/06/objc-show-alert-iphone/

    // open a alert with an OK and cancel button
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"UIAlertView" 
            message:@"My message" delegate:self cancelButtonTitle:@"Cancel"
            otherButtonTitles:@"OK", nil];
    [alert show];
    [alert release];
    

提交回复
热议问题