会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
2014_4_30
大部分人努力程度之低,根本轮不到拼天赋。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
10
下一页
2015年4月10日
UIPanGestureRecognizer判断滑动的方向
摘要: .h文件CGFloat const gestureMinimumTranslation = 20.0 ;typedef enum : NSInteger { kCameraMoveDirectionNone, kCameraMoveDirectionUp, kCameraMoveD...
阅读全文
posted @ 2015-04-10 11:09 2014_4_30
阅读(2163)
评论(0)
推荐(0)
2015年4月2日
实现微信朋友圈点击评论按钮时cell上移
摘要: 实现场景:微信朋友圈TableView(BigTableView)的每一行cell都包含一个SmallTableView(显示所有点赞及评论)实现思路: //BigTableView的contentOffset.y - (BigTableView的rect.origin.y + SmallTabl...
阅读全文
posted @ 2015-04-02 23:45 2014_4_30
阅读(257)
评论(0)
推荐(0)
2015年3月21日
UITableView的横向使用
摘要: UITableView只支持竖向显示,要实现横向的显示,需要设置tableView 和cell 的transform属性为CGAffineTransformMakeRotate(-M_PI/2) // 42.5是TableView的高度,320是UITableView的宽度 _...
阅读全文
posted @ 2015-03-21 16:58 2014_4_30
阅读(1209)
评论(0)
推荐(0)
2015年1月13日
用Xcode6的Leaks检测内存泄漏
摘要: 用xcode打开项目之后,选择Product - Profile:在弹出的窗口中选择Leaks:然后在设备解锁的情况下,选择Leaks再点击左上角的红色按钮开始运行APP:红色的柱子表示有内存泄漏,点击Leaks右边田字图片然后选择Call Tree,选中Invert Call Tree 和Hide...
阅读全文
posted @ 2015-01-13 10:01 2014_4_30
阅读(427)
评论(0)
推荐(0)
2015年1月12日
IOS8设备连接XCODE6真机调试报错"Could not inspect the application package"
摘要: 每次真机调试都要运行2次才行,解决办法:把product name改成英文就行了。
阅读全文
posted @ 2015-01-12 15:33 2014_4_30
阅读(272)
评论(0)
推荐(0)
2015年1月10日
Implicit declaration of function 'ether_ntoa' is invalid in C99
摘要: 报错代码:strcpy(temp, (char *)ether_ntoa(LLADDR(sdl)));解决方法:导入这三个头文件即可,#include #include #include 然后上面那行代码会有一个警告:"Incompatible pointer types passing 'cadd...
阅读全文
posted @ 2015-01-10 09:41 2014_4_30
阅读(2873)
评论(0)
推荐(0)
2015年1月9日
.xcodeprok cannot be opened because the project file cannot be parsed
摘要: 用svn更新代码后,打开xcode工程文件出现 xxx..xcodeproj cannot be opened because the project file cannot be parsed.这是因为.xcodeproj工程文件冲突然后强制更新,内部文件出现了冲突,所以解析不了文件。>>>>...
阅读全文
posted @ 2015-01-09 14:54 2014_4_30
阅读(186)
评论(0)
推荐(0)
2014年12月27日
根据图片的链接获取图片的宽高
摘要: //根据图片的链接获取图片的宽高- (CGSize)downloadImageSizeWithURL:(id)imageURL{ NSURL *URL = nil; if([imageURL isKindOfClass:[NSURL class]]){ URL = imag...
阅读全文
posted @ 2014-12-27 23:55 2014_4_30
阅读(586)
评论(0)
推荐(0)
2014年12月23日
关于UIWebView设置高度自适应的问题
摘要: - (void)viewDidLoad{ [super viewDidLoad]; _scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 66, 320, 480)]; //中间还有其他控件 ...
阅读全文
posted @ 2014-12-23 09:53 2014_4_30
阅读(1138)
评论(0)
推荐(0)
2014年12月20日
reason: 'data parameter is nil'
摘要: 最近APP启动之后老是报这个错:*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil' 我的APP每次启动都会调用自动登录请求(传递的参数都...
阅读全文
posted @ 2014-12-20 15:42 2014_4_30
阅读(3131)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
10
下一页
公告