iOS [Objective-C] UITextField 切换
2016-07-15 本文已影响43人
巴糖
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;