AlertView with password

你的名字 2021-12-24 13:04 297阅读 0赞

1. setAlertViewStyle:UIAlertViewStyleSecureTextInput

  1. UIAlertView *alertView = [[UIAlertView alloc]
  2. initWithTitle:@"Password"
  3. message:@"Please enter your password:"
  4. delegate:self
  5. cancelButtonTitle:@"Cancel"
  6. otherButtonTitles:@"Ok", nil];
  7. [alertView setAlertViewStyle:UIAlertViewStyleSecureTextInput];
  8. [alertView show];

2. setAlertViewStyle:UIAlertViewStyleLoginAndPasswordInput

  1. ...
  2. [alertView setAlertViewStyle:UIAlertViewStyleLoginAndPasswordInput];
  3. ...

转载于:https://www.cnblogs.com/davidgu/p/3478760.html

发表评论

表情:
评论列表 (有 0 条评论,297人围观)

还没有评论,来说两句吧...

相关阅读

    相关 带有关闭按钮的alertView

    概述 由于讨厌系统自带的alertView只能通过点击按钮才能关闭。你说万一按钮区域都是功能性的操作呢(这可不是我胡思乱想哦,要怪就产品的想法吧,呵呵哒),所以我们还是应

    相关 Password

    题目描述 Rivest是密码学专家。近日他正在研究一种数列E = {E[1],E[2],……,E[n]}, 且E[1] = E[2] = p(p为一个质数