tabbar custom images for iphone / ipad selection - iphone

I am working on customizing my tabbar background image and i resolved this for iphone by customizing tabbar class. it looks like that:
Then same thing i put for my ipad app it looks like that
I need the tab bar without extra spaces or black color in the image above. so i tried to update the tabbar class for ipad as well and i reached to this image below:
I managed the tabbar button views without extra spaces but unable to manage its button selection area, how can i manage the tabbar button selection ? it is still the same as second image, you can see the highlight of "settings" tabbar button selection in "Transaction" tabbar button.

The UITabBarController cannot work as you would like it to. You should write your own UITabBarController class - see this for an example of how: https://github.com/aalittle/ALCustomTabBarController

Related

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

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.

replace one tabbar with another on tap, as in iPhoto?

I'm working on a tabbed application using storyboards in Interface Builder. The Stack Overflow question at TabBar in one view leading to a second view with another set of tabbar seems to answer or at least be relevant to my question, but unfortunately I don't understand the answer entirely.
The first tab in the UITabBarController takes people to the main/home view controller, which displays a short text on the screen. I want to add a function whereby the user taps on the screen and a new tab bar slides in (like in iPhoto when you tap on a photo that's been displayed) with options to send, trash, or edit the text.
I don't need the new tab bar to be translucent like it is in iPhoto.
How do I do this?

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! :)

Starting an app with a Tab View and no tabs selected?

I'm developing an iPhone app with Objective-C and iOS SDK with a tab view on the bottom. I want to make the app so that when it first loads up, the tabs are on the bottom, but none of them are selected. Instead, the user is presented with a "home" view, and can select the tabs from there if he / she desires.
How would I make this work? I'm assuming it's something in the App Delegate?
Thanks!
I did this recently. Just do
[self.myTabBar setSelectedItem:nil];
Works perfectly, no tabs should be selected. Let me know if you have any problems. Also, just put that in either - (void) viewDidLoad or initWithNibName .
I think this would be something that's appropriate to fake.
I would:
Add a subview that overlays the area normally occupied by the selected tab view.
Add UITabBarControllerDelegate tabBarController:shouldSelectViewController that will hide/remove that view.
The only remaining problem is to make the actually selected tab button seem unselected until the subview is hidden.

Overlay view over tab viewcontrollers

using iphone sdk 4.1. I want to overlay a small view over all my tabcontroller views. this will present itself on the push of a button from one of the tab bar viewcontrollers but then i wish it to remain in place even if the user tabs to another view. How to do?
Thanks
Look at the Apple docs for UITabViewController - you want to add your overlay as a subview of the "view" property on your UITabViewController. This will make it appear above everything on the screen (even over the tab-bar itself, if you're not careful).
You can change the tabs as much as you want - that should just switch the value of the content underneath.