开发者

Recreating iPhone stock application with nested views

开发者 https://www.devze.com 2022-12-29 13:20 出处:网络
I am trying to create an app similar to the Yahoo Stocks app that comes on the iPhone, with the split-screen interface (table on the top, graph on the bottom).I\'m struggling with the view hierarchy.

I am trying to create an app similar to the Yahoo Stocks app that comes on the iPhone, with the split-screen interface (table on the top, graph on the bottom). I'm struggling with the view hierarchy.

What is the easiest way to implement a split-screen type of application. I basically want two views nested in a parent view. My problem is a little bit more complex because I want functionality like having a uipagecontrol (does this require another viewcontroller, or is simply implemented in the initial view controller)?

To wha开发者_如何学Ct degree do I need to use IB? I would prefer to do this all in Xcode. Thanks in advance!


There's no reason you can't create the views and put them inside of any other kind of UIView you want, particularly UIScrollView. Simply arrange their frames to be in the right position.

0

精彩评论

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

关注公众号