【Swift 2.2】iOS开发笔记(三)
1、UITableView 中调用 UIButton 的 setTitle 会闪 滚动列表时比较明显,解决办法:buttonType 改成 custom 即可,但是这样一来 UIButton 的高亮效果也没了,但可以自己手动配置 State Config 2、监听 UITextField 文本改变 func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool { let text = NSString(string: textField.text!).stringByReplacingCharactersInRange(range, withString: string) } 更好的办法:http://stackoverflow.com/questions/7010547/uitextfield-text-change-event 3、模拟较差的网络 iPhone 设置 >> D...