开发者

iPad views "frame"

开发者 https://www.devze.com 2023-03-27 14:13 出处:网络
I\'m trying to make an application which splits the screen into 3 separate parts as shown by the image below with the blue section changing frequently, the green having static data and the red sect开发

I'm trying to make an application which splits the screen into 3 separate parts as shown by the image below with the blue section changing frequently, the green having static data and the red sect开发者_开发知识库ion changing rarely but independently from the blue section.

What is the best way to set this up?

iPad views "frame"


Simple way is to create 3 views. Create them in Interface Builder with the dimensions you need.

Synthesize them & manipulate these views from your code... You need not have 3 separate viewControllers. You could manage them all from one single viewController.


I believe Apple provides developers with a controller class specifically for managing split views; now, as far as if that's simply 2 views beside each other or not I don't know. However, you could make the green/blue view the views managed by this controller object and have the red view be independent.

0

精彩评论

暂无评论...
验证码 换一张
取 消