ios 视图之弹窗

1,NSUserDefaults

    NSUserDefaults *user = [NSUserDefaults standardUserDefaults];
    if ([[user objectForKey:@"userName"] isEqualToString:
          self.userName.text] && [[user objectForKey:@"passWord"] 
          isEqualToString:self.passWord.text]) {
      UIAlertView *alter = [[UIAlertView alloc] initWithTitle:
       @"提示" message:@"登陆成功" delegate:self cancelButtonTitle:
       @"确定" otherButtonTitles:nil, nil];
        [alter show];
    }else{
        UIAlertView *alter = [[UIAlertView alloc] initWithTitle:
       @"提示" message:@"登陆失败" delegate:self cancelButtonTitle:
       @"确定" otherButtonTitles:nil, nil];
        [alter show];
    }


阅读更多
文章标签: ios 布局
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭