开发者

Creating custom menu at top like Real Simple Recipes does

开发者 https://www.devze.com 2023-04-12 04:23 出处:网络
I want to create tabbar controller placed at the top like Real Simple Recipes in iPad has done. I suspect that it is not UITabBarController as I have tried so many ways to place tab bar on the top by

I want to create tabbar controller placed at the top like Real Simple Recipes in iPad has done. I suspect that it is not UITabBarController as I have tried so many ways to place tab bar on the top by setting its view frame as

self.tabBarController.tabBar.view.frame = CGRectMake (0,0,768,self.tabBarController.tabBar.view.frame.height); But it is not working.

Is it custom tabbar controller create开发者_JS百科d or it is managed manually ? Any sample code or direction would be appriciated.


You want to make a custom view switcher of your own. This blog post has a nice tutorial for doing so. It uses a segmented control to do the switching, but you could adapt it to use a row of buttons if you needed a custom look.

(If you are OK requiring iOS 5, this gets easier with the view controller containment APIs, and it'd be a completely different implementation to the one suggested in that article.)

0

精彩评论

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