iOS 自定义控件--重写一些方法
时间:2016-06-02 11:30:06
收藏:0
阅读:256
学习源码是提升自己的一个很好的方法,在我们封装自己的控件的时候,可以重写一些方法。并且重写了当加载页面的时候会自动走这些方法。如
UIbutton中的几个方法
- (CGRect)backgroundRectForBounds:(CGRect)bounds; - (CGRect)contentRectForBounds:(CGRect)bounds; - (CGRect)titleRectForContentRect:(CGRect)contentRect; - (CGRect)imageRectForContentRect:(CGRect)contentRect;
原文:http://www.cnblogs.com/hansIOS/p/5552194.html
评论(0)