Setting Selected Image in Tab Bar Controller with Storyboard
Here is complete solution for selected/unselected image in Tabbar For XCode >= 8:
- Go to Image assets -> select image
- Select Render AS: "Original Image"
- After that go to storyboard -> Select Tabbar Item
- Under Attribute Inspectors, set "Selected Image" & "Image" as shown in following screenshot, that`s it:
You can use storyboard to set selected image of tabbar. I tried and it worked for me. Select the UITabbarItem and add a run-time attribute 'selectedImage', select Type as 'Image' and give the name of your image as its value.
I am using XCode 6.0 and my minimum deployment target is iOS 8.0.