Showing a overlaying menu when tab bar item is clicked - IOS - iphone

Thanks for reading my question!
I have a 5-part tabbar which I use for app navigation, the center tab is covered by a UIButton and is slightly larger (much like the instagram app). This works fine.
But what I want is the far right tab bar item to show a overlaying menu when clicked. I don't want it to switch to a viewcontroller with a menu. I want the menu to be displayed no matter which of the other views you're in at the moment. So I want it to act much like a button which is in the tabbar. But I have no idea how to go about doing this.
Should I use a overlaying button over the tabbaritem or should I catch the tabbarclick, but how can I prevent the view from changing in that case?
Thanks you for any help!

You need to implement UITabBarDelegate. Then override tabBar:didSelectItem: and implement your custom displaying here. See below for reference
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITabBarDelegate_Protocol/Reference/Reference.html
Then i would just make a custom UIView and fade it in when that specific tagged UITabBarItem is pressed.

Related

Facebook type slide menu for UITabBarcontroller with custom button in navigation bar

I want to implement Facebook type slide menu for UITabBarController, which has four tabs(Screens) and also this side menu should appear when we click on Custom UIButton at the top of each screen. I tried some of the open source slide menus like ECSlidingViewController, PKRevealController, JTRevealSidebarDemo, and SASlideMenu, but none of them provided this functionality without UINavigationController. Could anyone guide me how to achieve above.
Thanks in advance.
Those open source slide menus are often complicated and not well built, or built for older versions. This is what I did
Create a custom button, and then animate it to slide left to right or right to left, off the scree to on the scree to make it look like its expanding, etc.
Hope this helps

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

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 nav / 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.

UIButtons as Tab Bar?

I am trying to do something similar to this app (Bottom Tab).
http://itunes.apple.com/gb/app/westfield-london/id409824812?mt=8
Basically it has 5 UIButtons and some of them work like a UITabBar.
For some views the UIButtons (Tab) will stay at the bottom and for others it will not.
Once you click the Home button (top right) it goes to a View with an (Paging Images), NavigationBar at the top and UIButtons (Tab) at the bottom.
I want to know how it is possible to create such an App.
If you need any more details about the app, I will be happy to give.
That app is probably using a UINavigationController to manage navigation with the buttons all around the view. Once you tab on one of those, the app is actually using a UITabBarController, reusing the same images for the View, giving the illusion that the same buttons moved at the bottom.
Of course it's possible. They've done it! :)

flip animation for right navigation bar button item

What is the best way to have the right navigation bar button flip like it does in the ipod when one changes from list view to single song view? Subclass a custom view? Are there any api's out there that already do this?
thanks
This question is similar, and discusses a few solutions. The main issue is that the UIBarButtonItem isn't a UIView, so you can't use the UIView transitions. iPhone flip right button (like iTunes)

How to make a UIBarButtonItem look like a UINavigationBarItem

I have an iPad application with screen flows which don't map neatly to the navigation controller model, but still have the concept of "Back".
I'd like to manage my own toolbar and have a "Back" button where I decide where it goes.
Is there a way to make a toolbar button have the look of a back button as in UINavigationBarItem?
Thanks
Basically, you either have to use undocumented APIs, or create a custom button with a custom image.
This question:
Creating a left-arrow button (like UINavigationBar's "back" style) on a UIToolbar
has answers that cover both ways.
(Placing a UINavigationBar back button look alike icon somewhere other than the left of what looks like a UINavigationBar is probably against the HIG and may result in non-approval of the application, though perhaps only if you're unlucky.)