原文:http://stackoverflow.com/questions/19256996/uibutton-not-showing-highlight-on-tap-in-ios7
对于iOS6设置:
self.tableView.delaysContentTouches = NO;
对于IOS7需要在初始化cell时多加几行代码:
for (id obj in cell.subviews)
{
if ([NSStringFromClass([obj class]) isEqualToString:@"UITableViewCellScrollView"])
{
UIScrollView *scroll = (UIScrollView *) obj;
scroll.delaysContentTouches = NO;
break;
}
}