11 2015 档案
摘要:唐巧:http://blog.devtang.com/blog/2014/05/25/use-cocoapod-to-manage-ios-lib-dependency/1、Ruby环境搭建1-1 查看下当前ruby版本:打开终端输入ruby -v1-2 更新ruby终端输入如下命令(把Ruby镜像...
阅读全文
摘要:1.导入工程2.导入辅助库libicucore.tbd3.编译为非ARC (-fno-objc-arc)4.定义正则表达式//用来匹配中文 NSString * pattern=@"\\[[\\u4E00-\\u9FA5]+\\]"; //待匹配字符串 NSStri...
阅读全文
摘要:1.创建UITabBarController@implementation RootViewController{ NSMutableArray *_allBtnArr; //按钮数据数组}- (void)viewDidLoad { [super viewDidLoad]; // Do...
阅读全文
摘要:- (void)setRichNumberWithLabel:(UILabel *)label Color:(UIColor *) color FontSize:(CGFloat)size{//将Label的text转化为NSMutalbeAttributedString NSMutableA...
阅读全文
摘要:1.将字体文件导入工程(.ttf)2.打开Build Phases -> Copy Bundle Resources,确定字体文件已经添加3.编辑info.plist文件,添加Fonts provided by application并将字体文件加入到该项数组中4.使用如下代码显示所有字体名称//显...
阅读全文
摘要:1.在info.plist中添加设置View controller-based status bar appearance 为NO2.在AppDelegate中 [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyle...
阅读全文
摘要:-(NSString *)filterHTML:(NSString *)html {NSScanner * scanner = [NSScanner scannerWithString:html]; NSString * text = nil; while([scanner isAtEnd]=...
阅读全文

浙公网安备 33010602011771号