开发者

in the iPhone App Store app, what's the control at the top of the featured view?

Is it a Segmented Control?

About the featured view, is it purely a tableview? how could they m开发者_如何学Cake the Segmented Control to be permanent instead of scrolling with the table cells down below?


as Ertebolle says its a UISegmentedControl set as the titleView of the navigationItem.

You can also create elements within the view that don't scroll with the tableview by adding a UITableView as a subview of a UIViewController's view. Setting its frame property means that you can have a scrollable tableview in a fixed certain position in your view and other elements in the view that don't scroll with it.


Yes, I believe it is a UISegmentedControl. But it's set as the title view of the navigation bar - to reproduce the whole effect, you'd create a UINavigationController, push a UITableViewController as the top view in it, and set the titleView of the table view controller's navigationItem to that segmented control. This would automatically anchor the toolbar / segmented control on top.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜