我有以下设置,无法正确地处理自动布局:
Scroll View, which should take the whole screen
|_ Stack View, which should take the whole size of the Scroll View
|_ View 1 with a predefined height of 200
|_ View 2 with a flexible height defined by content, but minimum 300
|_ View 3 with a predefined height of
视图设置为"Retina 3.5全屏“
底部是一个按钮,它被设置为跟踪视图的底部(设置了外部顶部、外部左侧和外部底部支柱)。
这段代码在viewDidLoad中
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
CGRect viewRect = [self.view bounds];
CGFloat height = viewRect.size.height;
NS