글목록

2014. 4. 29.

[iOS] UITableViewCell content overlaps delete button when in editing mode in iOS7











#import "StateTableViewCell.h"

 
@implementation StateTableViewCell
- (void)awakeFromNib
{
    // Initialization code
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}
- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    for (UIView *subview in self.subviews) {
        
        for (UIView *subview2 in subview.subviews) {
            
            if ([NSStringFromClass([subview2 class]) isEqualToString:@"UITableViewCellDeleteConfirmationView"])
            {
                // move delete confirmation view
                [subview bringSubviewToFront:subview2];
                
            }
        }
    }
}
@end







 

댓글 없음:

댓글 쓰기