每天积累一点新知识

某个cell发生数据变化,实时刷新,把变化的cell的indexPath作为参数: 比如微信的朋友圈点赞和评论
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];


leftCapWidth和topCapHeight不变,其他部分等比拉伸:比如聊天气泡框背景图片。是UIImage的实例方法。
- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight 

UITextField 明文和密文切换
@property(nonatomic,getter=isSecureTextEntry) BOOL secureTextEntry;       // default is NO
如果切换时有空白的话 参考这个:https://www.jianshu.com/p/172ddbfbd9c4
此文仅为鄙人学习笔记之用,朋友你来了,如有不明白或者建议又或者想给我指点一二,请私信我。liuw_flexi@163.com/QQ群:582039935. 我的gitHub: (学习代码都在gitHub) https://github.com/nwgdegitHub/
原文地址:https://www.cnblogs.com/liuw-flexi/p/8861859.html