摘要: 如果要在按钮里的字体加下划线可以新建一个类继承UIButton 再重写(void)drawRect:(CGRect)rect方法View Code - (void)drawRect:(CGRect)rect { // Get the Render Context CGContextRef ctx = UIGraphicsGetCurrentContext(); // Measure the font size, so the line fits the text. // Could be that "titleLabel"... 阅读全文
posted @ 2012-07-26 19:11 天已界 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 属性作用CGPoint contentOffSet监控目前滚动的位置CGSize contentSize滚动范围的大小UIEdgeInsets contentInset视图在scrollView中的位置id<UIScrollerViewDelegate>delegate设置协议BOOL directionalLockEnabled指定控件是否只能在一个方向上滚动BOOL bounces控制控件遇到边框是否反弹BOOL alwaysBounceVertical控制垂直方向遇到边框是否反弹BOOL alwaysBounceHorizontal控制水平方向遇到边框是否反弹BOOL pag 阅读全文
posted @ 2012-07-26 14:46 天已界 阅读(157) 评论(0) 推荐(0) 编辑