IOS7 中 UITableViewCell 刪除視圖不還原

- (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];

                

            }

        }

    }

}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章