开发遇到了一个奇怪的问题
两个UITextField 初始化完成后,其中一个输入框不开启加密模式,另一个开启加密模式
_pwdTF.secureTextEntry = YES;
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
[self.contentView addSubview:self.accountTF];
[self.contentView addSubview:self.pwdTF];
[self.accountTF mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(WHL_ScaleNumber(20));
make.width.mas_equalTo(100);
make.right.mas_equalTo(WHL_ScaleNumber(-35));
make.height.mas_equalTo(WHL_ScaleNumber(44));
}];
[self.pwdTF mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(WHL_ScaleNumber(20));
make.left.mas_equalTo(WHL_ScaleNumber(20));
make.width.mas_equalTo(100);
make.height.mas_equalTo(WHL_ScaleNumber(44));
}];
}
此时点击进入编辑状态会输出以下警告信息
[AutoFill] Cannot show Automatic Strong Passwords for app bundleID: com.bundleID.com due to error: iCloud Keychain is disabled
实验发现UI布局有联系
1。两个同时开启加密的情况下则无输出;
2。两个同时关闭加密的情况下则无输出;
3。一个开启一个关闭:
origin.x一致的情况下,开启加密的输入框origin.y较大则会输出警告
origin.y一致的情况下,开启加密的输入框origin.x较大则会输出警告
暂记录问题,还未知什么原因。
网友评论