how to change toolbar image in ios6 - iphone

i'm pretty new to iOS programming. How do i change the image for each of the items in toolbar as shown on the picture below. The toolbar is on the bottom of the screen. Thanks in advance.

if you want to change or modify the tab bar items in anyway it is very possible. here is the link to ray's tutorial of how to change the images and colors of the uitabbar items and even tab bar itself. hope it help you. also you can explore ray's site for more info in ios development . it has been very helpful to me. happy coding.
http://www.raywenderlich.com/21703/user-interface-customization-in-ios-6

If you are creating your UITabBarController in code, see the methods on UITabBarItem itself. Specifically, finishedSelectedImage and finishedUnselectedImage
If you are creating your UITabBarController in Interface Builder, look for the "Image" dropdown in the Attributes inspector, while you have the Tab Bar Item selected.

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.

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

How to add a custom colorful Image to a tabBar in a TabBarController?

I am using a UITabBarController where i want to load a custom colorful image to the respective TabBar. I want to customize the font size,color and type of the Text for the UITabBar item. I have tried out many possibilities by using image property for the tabBar and tried to create a imageview and adding it as an subview to the tabBar. Can someone please provide any alternative to this problem?
The only way for this is implementing your own custom tab bar controller. You can find many tutorial on the web if you google "custom tab bar". This is one for iOS 5. And here, you can find another.

Three20 Photo Viewer causes my layout to slide up

thanks for any help with this.
I'm using the Three20 Photo Viewer in my app. Before I navigate to the photo viewer, all my views appear correctly, but after I click back out of the Photo Viewer, all of my content is slid up underneath my navigation bar.
Has any one experienced this, and found a solution?
Thanks for any help,
Dave
TTPhotoViewController sets navigation bar to be translucent and also sets it's wantsFullScreenLayout to YES. You need to play with those in your controller (when you are back to it from photo controller) to fix stuff.

Can I use aUITabBar and a UIToolBar at the same time?

I have been searching for how to do this the past day or so. I have read comments that you shouldn't do this but when I look at other apps I see it. For an example look at the App Store app. It uses a TabBar at the bottom for navigation. Then at the top of the Featured and Top 25 section it has what appears to be a ToolBar allowing the user to be more specific about what content they wish to view. I would like to implement something similar, but can't figure out how they have done it. The phone app uses this as well.
Am I mistaken that the top bar is a ToolBar?
Any insights would be greatly appreciated.
What you're talking about is a Segmented Control inside a Navigation Bar, a ToolBar is something entirely different. There are plenty of tutorials online for customizing the innards of a Navigation Bar.
In fact you should just be able to drag one into your view's navigation bar within Interface Builder. From there you can customize it's different segments.
Hope this helps.