【发布时间】:2014-11-24 13:04:57
【问题描述】:
我有一个 UIView,里面有一个 UITableView。
在 UIViewController 中,我像这样实例化 UIView:
viewMain = [ViewMain alloc]initwithframe:cgrectmake(0,0,200,500)];
在这个视图中,在方法 initWithFrame:(CGRect)frame 中,我像这样实例化 UITableView:
_tableView = [UITableView alloc]iniWithFrame:CGRectMake(0,0,frame.size.width,frame.size.height)];
问题是当我对 viewMain 应用约束时,如何根据 viewMain 布局约束更新 tableView 的大小?
【问题讨论】: