摘要: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
阅读全文
摘要:单个查询: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,
阅读全文
摘要:当然最好应该使用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:
阅读全文
摘要:在他们的父类试图重写该函数//- (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...
阅读全文
摘要:1. 首先,- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event和pointInside:withEvent:函数是什么关系?2. 具体到某个例子,UITableView是UIScrollView的子类,那么我们点击一个UITableViewCell的时候,我们是准备上下移动table 还是说要select这个table呢?3. 如果一个UIScrollView覆盖住一个UIButton,那么我要调用点击那个UIButton 怎么办?对于第一个问题,hitTest:函数就是判断当前你的手指触摸是不是在当前视图中。如何判断呢?
阅读全文
摘要:UITableViewCell *cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]: unrecognized
阅读全文