03 2017 档案

摘要:+ (CGSize)sizeWithText:(NSString *)text andFont:(UIFont *)font andMaxSize:(CGSize)maxSize { CGSize expectedLabelSize = CGSizeZero; NSMutableParagraphStyle *paragraphStyle = [[NSMutablePa... 阅读全文
posted @ 2017-03-29 18:21 超神船长 阅读(219) 评论(0) 推荐(0) 编辑
摘要:// // UIWebView+ToFile.h // UIWebViewToFile // // Created by Tracy E on 13-6-10. // Copyright (c) 2013 EsoftMobile.com. All rights reserved. // #import @interface UIWebView... 阅读全文
posted @ 2017-03-28 17:05 超神船长 阅读(240) 评论(0) 推荐(0) 编辑
摘要:#import "JZGMMMMModel.h" #import @implementation JZGMMMMModel //**动态添加方法 void addmethod(id self, SEL _cmd) { NSLog(@"addmethod"); } +(BOOL)resolveInstanceMethod:(SEL)sel { class_addMethod([s... 阅读全文
posted @ 2017-03-27 17:17 超神船长 阅读(170) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2017-03-23 13:41 超神船长 阅读(0) 评论(0) 推荐(0) 编辑
摘要:原创文章,转载请注明出处:http://blog.sina.com.cn/s/blog_60342e330101tcz1.html 1. 概念 objective-c有两个扩展机制:category和associative。我们可以通过category来扩展方法,但是它有个很大的局限性,不能扩展属性 阅读全文
posted @ 2017-03-21 15:39 超神船长 阅读(809) 评论(0) 推荐(0) 编辑
摘要:+ (UIImage *)imageWithColor:(UIColor *)color { CGRect rect = CGRectMake(0, 0, 1, 1); UIGraphicsBeginImageContext(rect.size); CGContextRef context = UI 阅读全文
posted @ 2017-03-13 11:58 超神船长 阅读(312) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2017-03-10 10:42 超神船长 阅读(0) 评论(0) 推荐(0) 编辑
摘要:Swift项目引入MBProgressHUD库 MBProgressHUD的源码很简单,就一个h接口文件和一个m实现文件,一共2个文件。 下载后,把两个文件拖到Swift项目中,XCode会提示是否创建桥接文件,选择是后,会自动创建一个Bridging-Header.h文件。 我们需要在这个桥接文件 阅读全文
posted @ 2017-03-03 11:42 超神船长 阅读(1550) 评论(0) 推荐(0) 编辑
摘要:加上这两句 tabview.estimatedRowHeight = 200(随便写个大概数) tabview.rowHeight = UITabViewAutomaticDimension 逻辑比较简单的情况下使用 阅读全文
posted @ 2017-03-02 16:43 超神船长 阅读(172) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示