会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
爱生活爱代码
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
16
17
18
19
20
21
下一页
2014年10月16日
IOS7 自定义UIBarButtonItem 的一些问题
摘要: ios 下自定义导航栏的BarButtonItem 会产生一些偏移问题,解决方案: 通过新建一个系统的带固定距离的Item来调节你的Item#define IOS7_NAVI_SPACE -10} [self.navigationItem setLeftBarButtonItems:[self...
阅读全文
posted @ 2014-10-16 22:55 爱生活爱代码
阅读(358)
评论(0)
推荐(0)
2014年10月15日
IOS tableView 自定义cell 多行时 文字重复现象
摘要: 今天写了一个demo,有一个问题,有很多cell,但是超过一页后往下翻,发现文字有重叠现象,cell用的是重用机制,按说不会这样,最终解决的方案:勾选这个,clears graphics content或者代码:[cell setClearsContextBeforeDrawing:YES] 字面意...
阅读全文
posted @ 2014-10-15 13:57 爱生活爱代码
阅读(462)
评论(0)
推荐(0)
UITableView cell中label自动换行和自定义label自动换行
摘要: 换行的前提必须是有足够的高度 才能换 否则不显示超出部分所以,在设置label换行的时候 要考虑cell的高度,cell的高度也要变化,废话不多说,来段代码:cell.label.text=[dict objectForKey:@"info"]; cell.label.numberOfLines=...
阅读全文
posted @ 2014-10-15 13:21 爱生活爱代码
阅读(1624)
评论(0)
推荐(0)
IOS Label 自动换行 IOS6和IOS7
摘要: IOS 6和ios7 不一样,所以,我们分开来:IOS6://计算实际frame大小,并将label的frame变成实际大小 CGSize size01 = [ssizeWithFont:[UIFontsystemFontOfSize:15.0f]constrainedToSize:sizelin...
阅读全文
posted @ 2014-10-15 13:18 爱生活爱代码
阅读(1423)
评论(0)
推荐(0)
2014年10月14日
AFNetWorking Request failed: unacceptable content-type: text/html
摘要: 今天写了一个快递查询的功能,使用的是AFNetWorking框架,贴个代码:dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{ NSDictionary *dict=@{@"key"...
阅读全文
posted @ 2014-10-14 22:49 爱生活爱代码
阅读(1870)
评论(0)
推荐(0)
2014年10月13日
IOS程序内发短信 MFMessageComposeViewController
摘要: 文章转载地址:http://www.headsky.org/?p=63iOS4.0新加入了MFMessageComposeViewController和MFMessageComposeViewControllerDelegate,提供了发送短信的接口,可以像发送邮件那样不用跳出程序来发送短信. 介绍...
阅读全文
posted @ 2014-10-13 10:58 爱生活爱代码
阅读(461)
评论(0)
推荐(0)
2014年10月8日
IOS 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: URLString'
摘要: 转载自:http://i.cnblogs.com/EditPosts.aspx?postid=4012011今天想写一个请求的天气,好的,废话不多说,先贴代码:使用AFNetWorking 发送get请求,但是一直报错 IOS 'NSInternalInconsistencyException', ...
阅读全文
posted @ 2014-10-08 20:43 爱生活爱代码
阅读(11422)
评论(0)
推荐(0)
2014年10月6日
MySQL check the manual that corresponds to your MySQL server version for the right syntax错误
摘要: 地化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)
2014年9月27日
根据中国气象局提供的API接口实现天气查询
摘要: 中国气象局提供了三个天气查询的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)
2014年9月24日
使用使用AFNetworking框架解析json报错: reason: '-[__NSCFArray removeObjectAtIndex:]: mutating method sent to immutable object
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2014-09-24 13:15 爱生活爱代码
阅读(6)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
下一页
公告