NSString* text =self.tfPassword.text;
self.tfPassword.text=nil;
self.tfPassword.font=nil;
self.tfPassword.font= [UIFontsystemFontOfSize:15];
self.tfPassword.text= text;
self.tfPassword.secureTextEntry = !self.tfPassword.secureTextEntry;
NSString* text =self.tfPassword.text;
self.tfPassword.text=nil;
self.tfPassword.font=nil;
self.tfPassword.font= [UIFontsystemFontOfSize:15];
self.tfPassword.text= text;
self.tfPassword.secureTextEntry = !self.tfPassword.secureTextEntry;
本文标题:iOS [Objective-C] UITextField 切换
本文链接:https://www.haomeiwen.com/subject/yevyjttx.html
网友评论