解决方案 »

  1.   

    你给button的title也设置一下color
    [_button setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
      

  2.   

    直接加载cell上试试,根据我以前遇到的情况,你加在content view上就算显示出来也执行不了click方法
      

  3.   

            UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(5, 10, 80, 20)];
            //button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
            [button setTitle:@"缓存" forState:UIControlStateNormal];
            [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
            button.backgroundColor = [UIColor grayColor];
            button.opaque = YES;
            button.backgroundColor = [UIColor redColor];
            [cell.contentView addSubview:button];