- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 简要剖析ARC
简介:ARC是在ios5(weak需要ios5才能使用)之后引入的一个新的内存管理机制,全称是Automatic Reference Counting,即自动引用计数,原理是系统在编译期间自动插入release/retain、autorelease管理对象的引用计数,并且处理dealloc方法里面的对象。规则:不要显示的调用dealloc方法(包括super dealloc
2014-09-05 16:03:29 518
原创 UITextField和UITextView输入限制解决方案
#pragma mark-UITextFiledDelegate//监听限制是否允许继续输入- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{ if (textField == _i
2014-09-02 15:18:06 962
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人