ios kaifa
弹窗提示
{ ////ios 7 弹窗 // UIAlertView *alert1=[[UIAlertView alloc] // initWithTitle:@"tishi" // message:@" ni shu ru de zhi bu zhengque" // delegate:nil // cancelButtonTitle:@"qu xiao" // otherButtonTitles:nil, nil]; // [alert1 show]; //ios 8 的弹窗 UIAlertController *alert2=[UIAlertController alertControllerWithTitle:@"提示" message:@"你输入的值不正确!" preferredStyle:UIAlertControllerStyleAlert]; [alert2 addAction:[UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil]]; [self presentViewController:alert2 animated:NO completion:nil];
转载 请注明原文地址并标明转载:http://www.cnblogs.com/laopo
商业用途请与我联系:lcfhn168@163.com