上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: .h文件CGFloat const gestureMinimumTranslation = 20.0 ;typedef enum : NSInteger { kCameraMoveDirectionNone, kCameraMoveDirectionUp, kCameraMoveD... 阅读全文
posted @ 2015-04-10 11:09 2014_4_30 阅读(2145) 评论(0) 推荐(0) 编辑
摘要: 实现场景:微信朋友圈TableView(BigTableView)的每一行cell都包含一个SmallTableView(显示所有点赞及评论)实现思路: //BigTableView的contentOffset.y - (BigTableView的rect.origin.y + SmallTabl... 阅读全文
posted @ 2015-04-02 23:45 2014_4_30 阅读(250) 评论(0) 推荐(0) 编辑
摘要: UITableView只支持竖向显示,要实现横向的显示,需要设置tableView 和cell 的transform属性为CGAffineTransformMakeRotate(-M_PI/2) // 42.5是TableView的高度,320是UITableView的宽度 _... 阅读全文
posted @ 2015-03-21 16:58 2014_4_30 阅读(1202) 评论(0) 推荐(0) 编辑
摘要: 用xcode打开项目之后,选择Product - Profile:在弹出的窗口中选择Leaks:然后在设备解锁的情况下,选择Leaks再点击左上角的红色按钮开始运行APP:红色的柱子表示有内存泄漏,点击Leaks右边田字图片然后选择Call Tree,选中Invert Call Tree 和Hide... 阅读全文
posted @ 2015-01-13 10:01 2014_4_30 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 每次真机调试都要运行2次才行,解决办法:把product name改成英文就行了。 阅读全文
posted @ 2015-01-12 15:33 2014_4_30 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 报错代码:strcpy(temp, (char *)ether_ntoa(LLADDR(sdl)));解决方法:导入这三个头文件即可,#include #include #include 然后上面那行代码会有一个警告:"Incompatible pointer types passing 'cadd... 阅读全文
posted @ 2015-01-10 09:41 2014_4_30 阅读(2839) 评论(0) 推荐(0) 编辑
摘要: 用svn更新代码后,打开xcode工程文件出现 xxx..xcodeproj cannot be opened because the project file cannot be parsed.这是因为.xcodeproj工程文件冲突然后强制更新,内部文件出现了冲突,所以解析不了文件。>>>>... 阅读全文
posted @ 2015-01-09 14:54 2014_4_30 阅读(177) 评论(0) 推荐(0) 编辑
摘要: //根据图片的链接获取图片的宽高- (CGSize)downloadImageSizeWithURL:(id)imageURL{ NSURL *URL = nil; if([imageURL isKindOfClass:[NSURL class]]){ URL = imag... 阅读全文
posted @ 2014-12-27 23:55 2014_4_30 阅读(576) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad{ [super viewDidLoad]; _scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 66, 320, 480)]; //中间还有其他控件 ... 阅读全文
posted @ 2014-12-23 09:53 2014_4_30 阅读(1132) 评论(0) 推荐(0) 编辑
摘要: 最近APP启动之后老是报这个错:*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil' 我的APP每次启动都会调用自动登录请求(传递的参数都... 阅读全文
posted @ 2014-12-20 15:42 2014_4_30 阅读(3074) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页