弹窗提示
{
////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];