#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_6_0//判断是否6.0的系统的
#define RETINA4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)//判断是否是4寸
- (IBAction)decreaseClickBt:(id)sender
{//在cell里面调用accessoryButtonTappedForRowWithIndexPath方法
if ([self.superview isKindOfClass:[UITableView class]])
{
UITableView *superView = (UITableView *)self.superview;
if (superView.delegate && [superView.delegate respondsToSelector:@selector(tableView:accessoryButtonTappedForRowWithIndexPath:)])
{
[superView.delegate tableView:superView accessoryButtonTappedForRowWithIndexPath:[superView indexPathForCell:self]];
}
}
}
1697

被折叠的 条评论
为什么被折叠?



