我刚刚升级到Xcode 6.0.1。我有一个iOS7应用程序,它有一个自定义的tableViewCell,它使用:
- (void)willTransitionToState:(UITableViewCellStateMask)state {
//...code
}现在,当我在viewController中将单元格置于编辑模式时,"state“的值是一些奇怪的新值"2147483649”。
stateMask的值有什么变化吗,或者你在编辑模式中放置单元格的方式有什么变化吗?
发布于 2014-10-03 16:35:40
得到了同样的问题,只有iOS8 (在iOS 7.1.1上没有这个问题)我注意到,当我的tableView实现它的dataSource委托方法来重新排序单元格时,就会发生这种情况:
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath *)destinationIndexPath;
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath;当我从tableView的委托类中删除这些方法时,我从UITableViewCell的willTransitionToState: method中获得了正确的状态。
我向苹果提交了一个bug,bug的编号是18536460,当可用时会添加一个链接
https://stackoverflow.com/questions/25960333
复制相似问题