Tab Bar application inside a Navigation-based application - ios

I'm developing an application which is designed to hold lots of instances of the same thing.
For example, amateur football teams can sign up and add their information to the app, and then browse through navigation controller/table-views to find their team amongst other teams.
Selecting a team would then open an instance of a view which would be tab-bar based.
The issue I'm having is the displaying of the tab bar icons. Other than that, it works perfectly.
There isn't any code involved, so my I can only really use images to explain.
Unfortunately I can't post images yet and can only post 2 links
Please look at the links:
http://s28.postimg.org/nxk8r1vst/IMG_3954.png
http://s28.postimg.org/6j00irynx/IMG_3955.png
When the tab-bar view is first opened in 1, you can see the icons aren't displayed correctly - the current tab is white tinted, the text of the other tab is default but the icon is white tinted. In links 2 and 3 they are highlighting and dimming properly BUT not picking up image tinting at all - i had set image tint to red to test it.
Image 4 is my storyboard for this. Doesn't seem to be anything wrong, as I said the navigation all works fine.
Apologies if this question isn't formatted properly. I haven't been able to find any answers and could really do with some suggestions.
Thanks

Are you sure you use the images for the UITabBar in correct format:
It should be in png format and in the following size:
About 50 x 50 pixels (96 x 64 pixels maximum)
About 25 x 25 pixels (48 x 32 pixels maximum) for standard resolution
Also the image should be white on transparent.

I'm almost positive that goes against an apple design directive.
Don't you mean several NavigationControllers one under each tab of a TabBarController i.e. NavigationControllers inside TabBarControllers and not the other way around?
By the images it looks like they are separate navigation controllers under distinct tabs

Related

iOS 11: `UIBarButtonItem`s having placement and usage issues

We have an app that has been around since before the days of storyboards. Prior to iOS 11 everything was fine after we updated it to be 64 bit. We have found two issues when running under iOS 11:
On iPhones the single UIBarButtonItem in the navigation bar's RightBarButtonItems isn't being placed all the way to the right as usual (the left side buttons is in the proper position).
On iPads we have what looks much like a segmented control (but made of individual buttons). It works fine when it is not in any kind of bar, but when it is in a bar it doesn't get touches.
In both cases I have used the UI navigator in Xcode to see that iOS 11 has added a couple extra views between bars and buttons. One of the added views is a bar content view (specific class depends on wether it is a toolbar or navigation bar; _UIToolbarContentView or _UINavigationBarContentView). The other added view is consistent among all kinds of bars, _UIButtonBarStackView.
In issue 1 above the added stack view is adding a very wide zero height view after the right bar button that is pushing the button way to the left (like it is trying to fit on an iPhone 4's screen far). Since the class has an underscore in front of it and isn't listed in the docs it must be a private class so even if I did dig into it and figure out how to keep the extra padding from getting added to the end it would get rejected by Apple for using private API.
I can't be sure what of the new views is intercepting the touches for the second issue but given that they are the only real differences I see between iOS 10 & 11 they seem the most likely culprits.
As I mentioned this was built before storyboards so the UI is built in xib files.
Has anyone run into issues with these new views and found a way to solve them? Or should I just rip out the whole UI and rebuild it?

IOS UITabbarController set Image is not possible

Hello my Guys i have some Problems to set the image in the UITabbarController. I use the Interfacebuilder to do that. But when I start the Simulator the tabs don't even images. It would be very nice when you can help me.
it's better to get 10*10 size png images, and add it to your tab item, and then you will come to know what size you can use.

Using Custom png Image for Tab Bar [duplicate]

This question already has an answer here:
Set image for tab bar IOS
(1 answer)
Closed 9 years ago.
I've created two custom png images that I want to use on my UI Tab Bar Controller. Both images are 29 x 29 pixels, which I believe is the right size for this purpose. I've added the files to the project, and referenced them from the Tab Bar. But when I run the app, they don't display.
The files are called cube.png and sphere.png. Here are screen shots to illustrate what i've done.
But when I run it, I get only this (no custom images)
How do I correct this?
Tab bar images only support transparent images in which the object should be drawn only in white color. If it contains any color,it will automatically converted to white. So use the appropriate image. You will get the result. For reference, you can find some of these here

how to resize iphone tab bar in xcode?

I'm developing an iOS app that has 5 items in the tab bar. But they are not evenly distributed. I want the right-most one to be larger and obviously it takes more spaces. and other 4 tab items can evenly distribute.
I've done some research but cannot find a good solution. Where can i customize the tab bars?
thanks
You can't do this with the standard iOS tab bar. You need to create a custom one or use one of the numerous open source libraries that do it already.
You can use UISegmentedControl. It is highly customizable and allows to modify width of each item in it.

How to use free tab bar icon images as bar button image?

I got some free image icons for iOS, for example, http://glyphish.com/
but I think these images is for tab bar icons, not for bar button images. I used these images to bar button, but it isn't good to look due to alphas in image. Pure-white image is needed for bar button image.
Is there any good images for bar button?
or, how can I edit image to use in bar button image? I'm not familiar to graphics tools like photoshop.
or, can I use images by changing bar button properties? I think if images can be inverted, it'll be better.
Assuming you are developing an HTML/CSS/Javascript app - have you looked at Jquery Mobile?
You can use their standard bar icons, which are white with alpha background - see the JQM-docs on button icons here.
So regarding your questions:
1) Yes, you can for example stick with the custom icons provided by frameworks
2) You can always draw your own icons in Photoshop or (I prefer) Inkscape (free & easier). I did this in Inkscape for example. Works nicely in Jquery Mobile.
3) Inverting images - if you are talking about using an image as a "mask" - you can only do this on Webkit browsers using the -webkit-mask-image property without changing the icon (example: here. If you need this across different devices, you have to cut out icons from a background-image. I did this in my cross-browser tab-bar

Resources