刚安装Xcode 4到目前为止一切都很好,除了Apple改变了所有的键盘快捷键!任何人都知道如何在.h和.m之间切换?
这很奇怪.我正在iPad模拟器中刷UITableViewCell.即使下面的事件触发并且swipedCell不是nil,也不会出现"删除"按钮.实际上,它似乎 - 但有时只是.我从来没有得到过糟糕的访问或sigbart.
这是代码:
- (void)handleSwipeFrom:(UISwipeGestureRecognizer *)recognizer
{
if (userListSwipeRightRecognizer.state == UIGestureRecognizerStateEnded) {
CGPoint swipeLocation = [userListSwipeRightRecognizer locationInView:self.outletView];
NSIndexPath *swipedIndexPath = [self.outletView indexPathForRowAtPoint:swipeLocation];
UITableViewCell* swipedCell = [self.outletView cellForRowAtIndexPath:swipedIndexPath];
[swipedCell setEditing:YES];
}
}
Run Code Online (Sandbox Code Playgroud)
这只是一个模拟器问题还是我做错了什么?