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

IOS7 中 UITableViewCell 删除视图不还原

2014-02-08 09:24 267 查看
- (void)layoutSubviews
{
    [super layoutSubviews];

    
    for (UIView *subview in self.subviews) {
         self.backgroundView.frame = CGRectMake(0, 0, self.backgroundView.frame.size.width, self.backgroundView.frame.size.height);
        for (UIView *subview2 in subview.subviews) {

            
            if ([NSStringFromClass([subview2 class]) isEqualToString:@"UITableViewCellDeleteConfirmationView"]) { // move delete confirmation view
                [subview bringSubviewToFront:subview2];

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