12 2012 档案

JSONKIT : format specifies type 'unsigned long' but the argument has type 'nsuinteger' (aka 'unsigned int')
摘要:Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()object->isa 替换为 object_getClass(object) 10处左右keyObject->isa 替换为 object_getClass(keyObject) 一处(id)keys[idx]->isa 替换为 object_getClass((id)keys[idx]) 一处format specifies type 'unsigned lo 阅读全文

posted @ 2012-12-18 14:46 小浪鼓 阅读(6321) 评论(0) 推荐(1)

FaceBook sdk FQL
摘要:单个查询:SELECT about_me,name,relationship_status,birthday_date,interests,sex,work,education FROM user WHERE uid = me()多个查询NSString *query =@"{"@"'other_info':'SELECT name,education,work FROM user where uid=780798254'," @"'my_info':'SELECT uid, name, 阅读全文

posted @ 2012-12-17 12:00 小浪鼓 阅读(536) 评论(0) 推荐(0)

IOS 实现滚动文字
摘要:当然最好应该使用block的方式,在此只是标记一下。 self.firstButton.backgroundColor = [UIColorgreenColor]; CGRect frame = self.firstButton.frame; frame.origin.x = 320; self.firstButton.frame = frame; [UIViewbeginAnimations:@"testAnimation"context:NULL]; [UIViewsetAnimationDuration:8.8f]; [UIViewsetAnimationCurve: 阅读全文

posted @ 2012-12-15 16:11 小浪鼓 阅读(8228) 评论(0) 推荐(0)

如果一个按钮被覆盖如何响应?
摘要:在他们的父类试图重写该函数//- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {// // UIButton *firstButton = (UIButton *) [self viewWithTag:1];// CGPoint pointInB = [firstButton convertPoint:point fromView:self];// // if ([firstButton pointInside:pointInB withEvent:event])// return firstButto... 阅读全文

posted @ 2012-12-15 15:22 小浪鼓 阅读(450) 评论(0) 推荐(0)

IOS 难理解的几个屏幕接触问题
摘要:1. 首先,- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event和pointInside:withEvent:函数是什么关系?2. 具体到某个例子,UITableView是UIScrollView的子类,那么我们点击一个UITableViewCell的时候,我们是准备上下移动table 还是说要select这个table呢?3. 如果一个UIScrollView覆盖住一个UIButton,那么我要调用点击那个UIButton 怎么办?对于第一个问题,hitTest:函数就是判断当前你的手指触摸是不是在当前视图中。如何判断呢? 阅读全文

posted @ 2012-12-11 00:33 小浪鼓 阅读(6846) 评论(0) 推荐(1)

-[UITableView dequeueReusableCellWithIdentifier:forIndexPath:] ERROR
摘要:UITableViewCell *cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]: unrecognized 阅读全文

posted @ 2012-12-02 23:31 小浪鼓 阅读(3864) 评论(4) 推荐(0)

导航