Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请看这张照片:
我正在尝试从书中练习一个多视图示例。
左边是主视图,中间是连接到“Page 2”栏按钮的子视图。最右边的是模拟器的结果。
程序编译成功。但是,结果是子视图似乎向下移动了一点。不知道是设置问题还是代码问题。
它可能会有所帮助
self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;