摘要: 1.hosts 配置文件地址 /private/etc/hosts 2.apache 配置文件地址 /etc/apache2/httpd.conf 3.Xcode 插件地址 ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/ 阅读全文
posted @ 2016-05-12 10:42 古龙•历山大亚 阅读(416) 评论(0) 推荐(0)
摘要: 1.插件管理工具Alcatraz 1.1 安装 curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh 1.2 删除 rm -rf ~/Library/Application\ Supp 阅读全文
posted @ 2016-04-22 11:08 古龙•历山大亚 阅读(151) 评论(0) 推荐(0)
摘要: 1.JSPatch 准备 地址:https://github.com/bang590/JSPatch 框架:libz.1.tbd , JavaScriptCore.framework 2.cocospod(可得到的三个文件) JPEngine.h,JPEngine.m,JSPatch.js 3.De 阅读全文
posted @ 2016-04-19 16:49 古龙•历山大亚 阅读(789) 评论(0) 推荐(1)
摘要: 1.UIActivityViewController是继承自UIViewController,是拥有VC的特性 a.初始化 init , initWithActivityItems:applicationActivities UIActivityViewController *activity = 阅读全文
posted @ 2016-02-24 15:15 古龙•历山大亚 阅读(757) 评论(0) 推荐(0)
摘要: 1.获取当前光标位置UITextRange *range = _textField.selectedTextRange;2.选取开始到最后的文字 UITextPosition *start = [self.textField beginningOfDocument]; //开始的光标 U... 阅读全文
posted @ 2015-11-27 19:24 古龙•历山大亚 阅读(539) 评论(0) 推荐(0)
摘要: 1.1 十进制转2进制-(NSString *)binaryFromInteger:(NSInteger)index{ NSString *str = @""; while (index != 1) { NSInteger two = index % 2; s... 阅读全文
posted @ 2015-11-25 10:20 古龙•历山大亚 阅读(219) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2015-11-23 11:22 古龙•历山大亚 阅读(40) 评论(0) 推荐(0)
摘要: 1.打电话- (IBAction)callPhone1:(id)sender { NSURL *url = [NSURL URLWithString:@"tel://18500441739"]; [[UIApplication sharedApplication] openURL:url... 阅读全文
posted @ 2015-08-12 00:14 古龙•历山大亚 阅读(201) 评论(0) 推荐(0)
摘要: 1.添加约束(系统) a.一个约束(上下左右)+(instancetype)constraintWithItem:(id)view1 attribute:(NSLayoutAttribute)attr1 relatedBy:(NSLayoutRelation)relation toItem:(id)... 阅读全文
posted @ 2015-08-11 23:56 古龙•历山大亚 阅读(220) 评论(0) 推荐(0)
摘要: 1.本地生成打印源self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"打印" style:(UIBarButtonItemStylePlain) target:self action:@s... 阅读全文
posted @ 2015-08-09 22:39 古龙•历山大亚 阅读(205) 评论(0) 推荐(0)