06 2016 档案
摘要:// 1.设置导航条的背题图片 设置全局 UINavigationBar *navBar = [UINavigationBar appearance]; [navBar setBackgroundImage:[UIImage imageNamed:@"NavBar"] forBarMetrics:U
阅读全文
摘要:#import "ViewController.h" @interface ViewController () @property (weak, nonatomic) IBOutlet UITextField *textFieldOne; @property (weak, nonatomic) IB
阅读全文
摘要:#import <UIKit/UIKit.h>@interface UIView (Extension)@property (nonatomic, assign) CGFloat x;@property (nonatomic, assign) CGFloat y;@property (nonatom
阅读全文
摘要:[NSThread currentThread]返回一个int类型 如果返回值为1为主线程如果为其他则为子线程耗时操作不要放在主线程单中 [self performSelectorInbackground :@(selector)(go) withObject:nil];会开辟一个新的子线程 后面传
阅读全文
摘要:NSURL * url=[NSURL URLWithString:"www.baidu.com"]; UIWebView * webView=[[UIWebView alloc]init]; self.view=webView; //请求 webview 加载远程网站 NSRequest * req
阅读全文
摘要:-(NSArray *)htmls{ if (!_htmls) { //从help.json加载数据 //1.获取json路径 NSString *filePath = [[NSBundle mainBundle] pathForResource:@"help.json" ofType:nil];
阅读全文

浙公网安备 33010602011771号