摘要: 1 - (void)viewDidLoad 2 3 { 4 5 [super viewDidLoad]; 6 7 // Do any additional setup after loading the view. 8 9 10 11 // 滚动视图 12 13 UIScrollView *scro... 阅读全文
posted @ 2016-06-06 15:25 超级马力 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 1 DrawRect 2 3 - (void)drawRect:(CGRect)rect 4 5 { 6 7 // Drawing code 8 9 // 当前视图绘制信息 10 11 CGContextRef context = UIGraphicsGetCurrentContext(); 12 13 // 设置线条的宽度 14 ... 阅读全文
posted @ 2016-06-06 15:24 超级马力 阅读(278) 评论(0) 推荐(0) 编辑
摘要: /// 手势识别器 // 1. 轻拍手势 // 手势需要在定义是绑定一个触发方法(SEL) // UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(ta 阅读全文
posted @ 2016-06-06 15:23 超级马力 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 1 #import "MainViewController.h" 2 3 @interface MainViewController () 4 // 延展 :管理类私有的属性和方法 5 @end 6 7 @implementation MainViewController 8 // 指派初始化方法 9 - (id)initWithNibName:(NSString *)ni... 阅读全文
posted @ 2016-06-06 15:22 超级马力 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 1 #import "TestDicAppDelegate.h" 2 3 @implementation TestDicAppDelegate 4 5 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions ... 阅读全文
posted @ 2016-06-06 15:20 超级马力 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 1 NSString *filePath = @"/Users/dlios/Downloads/area.txt"; 2 NSError *error = nil; 3 NSString *buffer = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:&err... 阅读全文
posted @ 2016-06-06 15:08 超级马力 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 0x16e087000 0.Swift 2.0 仿微信界面 Feature 包括:全部采用 Autolayout,消息列表和聊天界面,访问系统相册,地图调用,访问通讯录,扫一扫等 https://github.com/jamy0801/LGWeChatKit 1.YYText 兼容 UILabel 阅读全文
posted @ 2016-01-06 22:30 超级马力 阅读(918) 评论(0) 推荐(0) 编辑
摘要: 苹果手机出现意外情况无法点击链接或扫码进行安装: 1.清理Safari缓存:设置—Safari 清除历史记录与网站数据; 2.重启手机:长按开关机键按钮; 3.强制重启:开关机按钮与home按钮同时长按,待屏幕再次唤醒出现苹果标志后再松开两个按钮; 注:由于微信处于安全性原因,微信客户端点击链接是无 阅读全文
posted @ 2015-06-06 15:59 超级马力 阅读(303) 评论(0) 推荐(0) 编辑
摘要: HTML 5: viewport: <meta name="viewport" content="width=device-width,target-densitydpi=high-dpi,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0 阅读全文
posted @ 2015-06-04 15:53 超级马力 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 启动Apache 打开“终端(terminal)”,输入 sudo apachectl -v,(可能需要输入机器密码)。如下显示Apache的版本 接着输入 sudo apachectl start,这样Apache就启动了。打开Safari浏览器地址栏输入 “http://localhost”,可 阅读全文
posted @ 2015-06-04 15:13 超级马力 阅读(423) 评论(0) 推荐(0) 编辑