摘要: 1. UI整理http://www.cocoachina.com/ios/20151110/14067.html.2. iOS学习路径http://www.cocoachina.com/ios/20141106/10147.html 阅读全文
posted @ 2015-11-18 11:53 TheYouth 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 在iOS7中,表格中经常看到的一个情况是如下所示, 解决方法: 1,手写代码控制 1 self.tableView.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0); 1 self.tableView.separatorInset = UIEdgeInset 阅读全文
posted @ 2015-11-17 15:42 TheYouth 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1.在主线程中更新UI //在主线程加载 dispatch_async(dispatch_get_main_queue(), ^{ [self.tableView reloadData]; [MBProgressHUD showSucces... 阅读全文
posted @ 2015-11-12 10:45 TheYouth 阅读(135) 评论(0) 推荐(0) 编辑
摘要: - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text{ CGFloat textHeight = textView.contentSize.height; NSLog(@"%@",[NSString string... 阅读全文
posted @ 2015-11-10 03:52 TheYouth 阅读(2117) 评论(0) 推荐(0) 编辑
摘要: //UILabel文字自适应 - (UILabel *)titleL{ if(_titleL ==nil){ _titleL = [[UILabel alloc] init]; /**设置文字*/ [_titleL setText:self.myMessModel.content]; [_title 阅读全文
posted @ 2015-11-08 21:29 TheYouth 阅读(331) 评论(0) 推荐(0) 编辑
摘要: iOS 9检测QQ、微信是否安装无效的解决方法 在info.plist里面添加LSApplicationQueriesSchemes(Array类型),然后插入weixin, wechat, mqq的string类型子项,如下图: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 阅读全文
posted @ 2015-11-08 19:12 TheYouth 阅读(910) 评论(0) 推荐(0) 编辑
摘要: iOS QQ第三方登实现我们经常会见到应用登陆的时候会有QQ,微信,微博等的第三方登陆如图:下面我们主要讲一下qq的第三方登陆如何实现首先,到官网注册:http://wiki.connect.qq.com一,下载SDK下载SDK 地址:http://wiki.open.qq.com/wiki/mob... 阅读全文
posted @ 2015-11-06 15:16 TheYouth 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 转自:http://sis hu ok.com/forum/blogCategory/showByCategory.html?categories_id=138&user_id=10385 居然话sis hu ok.com违禁 嗨~~~ 想看原文请把空格去掉我们知道,到我们程序从前台退到后台(安h... 阅读全文
posted @ 2015-11-05 20:31 TheYouth 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 1.key与value关系,用一个key的值控制整个模型 NSDictionary *dic = @{@"channelKey":channelModel,@"channelIndexKey":[NSString stringWithFormat:@"%ld",i],channelModel.cha 阅读全文
posted @ 2015-11-04 21:49 TheYouth 阅读(626) 评论(0) 推荐(0) 编辑
摘要: 频道数据{ 5976 = ( "", "", "", "", "", "", "", "", "", "" ); channelIndexKey = 1; channelKey = "";} /**取出所有的频道*/ NSA... 阅读全文
posted @ 2015-11-04 21:46 TheYouth 阅读(271) 评论(0) 推荐(0) 编辑