06 2016 档案

摘要:// 1.设置导航条的背题图片 设置全局 UINavigationBar *navBar = [UINavigationBar appearance]; [navBar setBackgroundImage:[UIImage imageNamed:@"NavBar"] forBarMetrics:U 阅读全文
posted @ 2016-06-28 22:08 阿法狗的世界 阅读(128) 评论(0) 推荐(0)
摘要:#import "ViewController.h" @interface ViewController () @property (weak, nonatomic) IBOutlet UITextField *textFieldOne; @property (weak, nonatomic) IB 阅读全文
posted @ 2016-06-28 21:27 阿法狗的世界 阅读(98) 评论(0) 推荐(0)
摘要:#import <UIKit/UIKit.h>@interface UIView (Extension)@property (nonatomic, assign) CGFloat x;@property (nonatomic, assign) CGFloat y;@property (nonatom 阅读全文
posted @ 2016-06-28 09:48 阿法狗的世界 阅读(79) 评论(0) 推荐(0)
摘要:[NSThread currentThread]返回一个int类型 如果返回值为1为主线程如果为其他则为子线程耗时操作不要放在主线程单中 [self performSelectorInbackground :@(selector)(go) withObject:nil];会开辟一个新的子线程 后面传 阅读全文
posted @ 2016-06-27 00:25 阿法狗的世界 阅读(75) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-06-26 17:20 阿法狗的世界 阅读(3) 评论(0) 推荐(0)
摘要:NSURL * url=[NSURL URLWithString:"www.baidu.com"]; UIWebView * webView=[[UIWebView alloc]init]; self.view=webView; //请求 webview 加载远程网站 NSRequest * req 阅读全文
posted @ 2016-06-26 10:39 阿法狗的世界 阅读(97) 评论(0) 推荐(0)
摘要:-(NSArray *)htmls{ if (!_htmls) { //从help.json加载数据 //1.获取json路径 NSString *filePath = [[NSBundle mainBundle] pathForResource:@"help.json" ofType:nil]; 阅读全文
posted @ 2016-06-26 09:50 阿法狗的世界 阅读(287) 评论(0) 推荐(0)