开发者

Implement UIToolBar so it acts like a UITabBar and UIToolBar at the same time

开发者 https://www.devze.com 2023-03-25 05:53 出处:网络
I have an interesting problem. I have an app that I\'m developing that involves photos so screen space is at a premium. Also, using disappearing and reappearing 开发者_如何学Cnav / tool bar controller

I have an interesting problem. I have an app that I'm developing that involves photos so screen space is at a premium. Also, using disappearing and reappearing 开发者_如何学Cnav / tool bar controllers (like in the camera app) doesn't make sense for me. In a perfect world, I'd use a UITabBar to switch between the 4 main navigational view controllers that my program implements, however I also am going to need space for a toolbar right on top of the tab bar most of the time. These two components take up too much space between the two of them so I need a way to save some space.

That's where I came up with the idea of using a toolbar to implement the functionality of both the TabBar and ToolBar. On the left side of the ToolBar would be the 4 buttons that allow access to my 4 main navigational view controllers. The one that is currently on the window would have it's button depressed. Then there would be a divider, and on the right side of the tool bar would be buttons specific to whatever view is currently on the window.

Anyhow, I'm just wondering if anyone has any clever ideas on how they'd implement this?


wat do u mean by left and right of toolbar??? adding a tab bar will not affect ur view size. when adding a toolbar, well yes it does affect ur view size.

my idea wolud be add a toolbar to the top of ur view and u can make it visible only when the user taps on the screen. until then keep the toolbar hidden. when the user clicks for the second time on the screen hide ur toolbar. this way u can have the whole view for ur pics and also have a toolbar for giving options.

0

精彩评论

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