上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 49 下一页

2015年12月22日

iOS 之 文件缓存

摘要: 对于信息量不是太大的数据,可以使用文件缓存来处理。文件缓存可以缓存字典和数组。步骤一:创建路径 路径要一级一级往下创建,基本不用考虑创建失败的情况。但是如果创建失败了要怎么做呢?按道理应该提示出来。结束往下的操作,因为没有办法继续创建下面的目录。 创建路径要放到~Document下面,在真机... 阅读全文

posted @ 2015-12-22 18:10 大木哥 阅读(296) 评论(0) 推荐(0) 编辑

申请苹果企业账号

摘要: 参考网址:http://my.oschina.net/wenbobao/blog/375748百度经验:http://jingyan.baidu.com/article/4dc408489ebbb2c8d946f12c.html百度经验:http://jingyan.baidu.com/articl... 阅读全文

posted @ 2015-12-22 06:04 大木哥 阅读(555) 评论(0) 推荐(0) 编辑

2015年12月21日

iOS 之 获取View所在控制器

摘要: 1.UIResponderUIViewController *uvc; UIResponder* nextResponder = [self.superview.superview.superview nextResponder]; if ([nextResponder isKi... 阅读全文

posted @ 2015-12-21 16:56 大木哥 阅读(489) 评论(0) 推荐(0) 编辑

iOS 之 WebView 简单使用

摘要: 1. 代理 UIWebViewDelegate 2. 创建UIWebView myWebView=[[UIWebView alloc] initWithFrame:CGRectMake(0, 0,self.view.frame.size.width,self.view.frame.size.heig... 阅读全文

posted @ 2015-12-21 16:21 大木哥 阅读(242) 评论(0) 推荐(0) 编辑

iOS 之 关闭键盘

摘要: //方法一:关闭整个系统的键盘[[[UIApplication sharedApplication] keyWindow] endEditing:YES];//方法二:关闭当前页的键盘[[selffindFirstResponderBeneathView:self]resignFirstRespon... 阅读全文

posted @ 2015-12-21 10:22 大木哥 阅读(167) 评论(0) 推荐(0) 编辑

iOS 之 NSString 去除前后空格和回车键

摘要: NSString *string = @" spaces in front and at the end ";NSString *trimmedString = [string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAnd... 阅读全文

posted @ 2015-12-21 08:31 大木哥 阅读(470) 评论(0) 推荐(0) 编辑

2015年12月20日

iOS 之 通知

摘要: 步骤一,注册消息:[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getUserProfileSuccess:)name:@"Notification_GetUserProfileSuccess" o... 阅读全文

posted @ 2015-12-20 15:52 大木哥 阅读(159) 评论(0) 推荐(0) 编辑

iOS 之 定时器

摘要: [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(showMyDrivingRangeTimer) userInfo:nil repeats:NO]; 阅读全文

posted @ 2015-12-20 15:28 大木哥 阅读(120) 评论(0) 推荐(0) 编辑

2015年12月19日

iOS 错误 之 Unexpected interface name 'HomeListCell': expected expression

摘要: 说明:不应该是类HomeListCell:应该是表达式。出现场景:赋值时,等号右面是个类名,而不是变量名。 阅读全文

posted @ 2015-12-19 18:43 大木哥 阅读(1678) 评论(0) 推荐(0) 编辑

2015年12月18日

iOS 之 设置控件在视图中心位置

摘要: _qrImgView.bounds = CGRectMake(0, 0, sizeImg, sizeImg);_qrImgView.center = CGPointMake(CGRectGetWidth(view.frame)/2, CGRectGetHeight(view.frame)/2); 阅读全文

posted @ 2015-12-18 18:00 大木哥 阅读(807) 评论(0) 推荐(0) 编辑

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 49 下一页

导航