UITableViewWrapperView and UITableView size differs with autolayout

后端 未结 7 2045
一生所求
一生所求 2020-12-28 16:38

I am building a chat. Everything seem to be quite ok but I bumped into sort of \'buggy\' problem.

i got UIViewController with UITextView bar for entering message and

7条回答
  •  一整个雨季
    2020-12-28 17:03

    It seems that it is a bug (fighting with this bug took all day for me) Finally this workaround helped:

    for (UIView *subview in tableView.subviews)
    {
        if ([NSStringFromClass([subview class]) isEqualToString:@"UITableViewWrapperView"])
        {
            subview.frame = CGRectMake(0, 0, tableView.bounds.size.width, tableView.bounds.size.height);
        }
    }
    

提交回复
热议问题