摘要: ios 下自定义导航栏的BarButtonItem 会产生一些偏移问题,解决方案: 通过新建一个系统的带固定距离的Item来调节你的Item#define IOS7_NAVI_SPACE -10} [self.navigationItem setLeftBarButtonItems:[self... 阅读全文
posted @ 2014-10-16 22:55 爱生活爱代码 阅读(358) 评论(0) 推荐(0)
摘要: 今天写了一个demo,有一个问题,有很多cell,但是超过一页后往下翻,发现文字有重叠现象,cell用的是重用机制,按说不会这样,最终解决的方案:勾选这个,clears graphics content或者代码:[cell setClearsContextBeforeDrawing:YES] 字面意... 阅读全文
posted @ 2014-10-15 13:57 爱生活爱代码 阅读(462) 评论(0) 推荐(0)
摘要: 换行的前提必须是有足够的高度 才能换 否则不显示超出部分所以,在设置label换行的时候 要考虑cell的高度,cell的高度也要变化,废话不多说,来段代码:cell.label.text=[dict objectForKey:@"info"]; cell.label.numberOfLines=... 阅读全文
posted @ 2014-10-15 13:21 爱生活爱代码 阅读(1624) 评论(0) 推荐(0)
摘要: IOS 6和ios7 不一样,所以,我们分开来:IOS6://计算实际frame大小,并将label的frame变成实际大小 CGSize size01 = [ssizeWithFont:[UIFontsystemFontOfSize:15.0f]constrainedToSize:sizelin... 阅读全文
posted @ 2014-10-15 13:18 爱生活爱代码 阅读(1423) 评论(0) 推荐(0)
摘要: 今天写了一个快递查询的功能,使用的是AFNetWorking框架,贴个代码:dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{ NSDictionary *dict=@{@"key"... 阅读全文
posted @ 2014-10-14 22:49 爱生活爱代码 阅读(1870) 评论(0) 推荐(0)
摘要: 文章转载地址:http://www.headsky.org/?p=63iOS4.0新加入了MFMessageComposeViewController和MFMessageComposeViewControllerDelegate,提供了发送短信的接口,可以像发送邮件那样不用跳出程序来发送短信. 介绍... 阅读全文
posted @ 2014-10-13 10:58 爱生活爱代码 阅读(461) 评论(0) 推荐(0)
摘要: 转载自:http://i.cnblogs.com/EditPosts.aspx?postid=4012011今天想写一个请求的天气,好的,废话不多说,先贴代码:使用AFNetWorking 发送get请求,但是一直报错 IOS 'NSInternalInconsistencyException', ... 阅读全文
posted @ 2014-10-08 20:43 爱生活爱代码 阅读(11422) 评论(0) 推荐(0)
摘要: 地化GO的时候一直遇到一个错误就是check the manual that corresponds to your MySQL server version for the right syntax,反复检查过多次语句都没发现错误,后来网上搜索解决方法见到:http://hi.baidu.com/... 阅读全文
posted @ 2014-10-06 16:27 爱生活爱代码 阅读(21895) 评论(0) 推荐(0)
摘要: 中国气象局提供了三个天气查询的API接口:【1】http://www.weather.com.cn/data/sk/101190101.html【2】http://www.weather.com.cn/data/cityinfo/101190101.html【3】http://m.weather.c... 阅读全文
posted @ 2014-09-27 13:48 爱生活爱代码 阅读(933) 评论(0) 推荐(1)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2014-09-24 13:15 爱生活爱代码 阅读(6) 评论(0) 推荐(0)