iphone开发
iOSDavinLee
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
iOS:使用Block回调按钮事件(自定义view)
自定义CustomView,在头文件中提供block回调函数 @property (nonatomic, copy) void(^buttonClickBlcok)(NSInteger index); 给其中的UIButton绑定事件监听器 [button addTarget:self action:@selector(buttonClick:) forControlEvents:UIControl原创 2015-03-30 21:24:53 · 4193 阅读 · 0 评论 -
iOS:(boundingRectWithSize)按大小计算字符串高度
NSString *text = @"这里要很多字符,我就不打了……"; NSAttributedString *attributeString = [[NSAttributedString alloc] initWithString:text attributes:attributes]; NSRange range = NSMakeRange(0, attributeString原创 2015-04-15 11:19:23 · 972 阅读 · 0 评论
分享