摘要:
UIAlertView,UIActionSheet都是系统的弹框 UIAlertView:创建方法- (id)initWithTitle:(NSString *)title message:(NSString *)message delegate:(id /**/)delegate cance... 阅读全文
摘要:
NSNotificationCenter 较之于 Delegate 可以实现更大的跨度的通信机制,可以为两个无引用关系的两个对象进行通信。NSNotificationCenter 的通信原理使用了观察者模式; 1. NSNotificationCenter 注册观察者对某个事件(以字符串命名)... 阅读全文
摘要:
UITabelView:常用属性@property (nonatomic) CGFloat rowHeight; // will return the default value if unset@property (nonatomic) CGFloat sect... 阅读全文
摘要:
UIScrollView:常用属性@property(nonatomic) UIEdgeInsets contentInset; // default UIEdgeInsetsZero. add additional scroll area around content@prop... 阅读全文
摘要:
UILabel:常用属性@property(nonatomic,copy) NSString *text; // default is nil@property(nonatomic,retain) UIFont *font; // default is... 阅读全文
摘要:
UIkit框架下的几个基本控件,UIButton,UITextField,UILabel,UIImageView,UIScrollView,UITableView,UITableViewCell,UIPageControl; 他们的继承关系,UILabel,UIImageView,UIScro... 阅读全文
摘要:
写在私有分类中就是私有的 ,只能当前类访问. 写在interface中也就是头文件中是公开的,别人只要导入头文件就可以访问. xcode5之后苹果推荐我们将控件的属性写在私有分类中封装起来.避免外界直接操作当前类管理的子控件, 更好的保证了封装性. , 优缺点的体现在团队开发(多人开发中),和编... 阅读全文
![](/skins/gray/images/separator.gif)