您的位置:首页 > 产品设计 > UI/UE

设置cell选中后一段时间颜色自动消失

2015-08-30 16:09 555 查看
//个性化点击效果

-(void)tableView:(UITableView
*)tableView didSelectRowAtIndexPath:(NSIndexPath
*)indexPath{

   

    [self
performSelector:@selector(deselect)
withObject:nil
afterDelay:0.2f];

   

}

-(void)deselect{

    [self.tableView
deselectRowAtIndexPath:[self.tableView
indexPathForSelectedRow]
animated:YES];

}

//============系统样式===================
self.selectionStyle
=
UITableViewCellSelectionStyleDefault;

   

   
/**

     *  UITableViewCellSelectionStyleNone,//没有现象

     UITableViewCellSelectionStyleBlue, 
灰色

     UITableViewCellSelectionStyleGray,

     UITableViewCellSelectionStyleDefault

     */
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  iOS uitableview