Change Titles of Default Apple UITabBarItems - ios

Hello I am making a sports app and I have three UITabBarItems in a tab bar: Featured, My Teams and Results. I like the default icons for each as the default featured, most viewed and history respectively.
What it looks like in the .xib:
However when I try to change the titles in the UIViewController they do not change.
UIViewController code (I do not need to change the title of featured):
[_teamsItem setTitle:#"Teams"];
[_resultsItem setTitle:#"Results"];
How can I change the titles, or how can I use the icons from those default UITabBarItems to create my own? Thanks in advance.

If you use system icons, they come with the titles. You can't use just the icons (without titles), unless you use a tool like iOS Artwork Extractor to actually extract the images from iOS and add them to your project.

Related

Custom UIActivityViewController with Background and Items

Does anyone have any suggestions on how to make a custom UIActivityViewController. I saw this one in the Litely app:
and really like it. It has a "night theme". So how do I change the background color and how can I add custom items to it? Thanks!
You cannot customize the existing iOS widget. If you want a custom one, you must build a custom one.
Here is one of many open source implementations on GitHub.

Where do I get the iOS toolbar icons for up/down arrow?

I'm looking for these button icons,
, that I found in the Apple developer's guide for working with toolbars (almost half way down the page, but I can't find them in the storyboard.
I found a bunch of other icons in the storyboard for images, as shown here on the right, and I expected they would be there but they weren't.
Where do I get all these icons that Apple suggests I use? I would really like to use the up/down arrows for casting votes in my app.
Specifically, where can I get all of the images found in this guide
(source: apple.com)
They are not available. They're just a list of icons they have developed for iOS as a showcase. You should look into making them yourself and applying them as a UIButtonTypeCustom. Small drawback is that if the iOS style changes (like iOS6 -> iOS7) you need to manually update your custom buttons while the rest is automatically upgraded.

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 display a badge in Trigger.io's native tab bar?

Is there a way to create a numeric badge in Trigger.io's native tab bar?
I'm looking to achieve something like so:
Good idea! No, not currently - you could, of course, have a bunch of different icons there and switch the button out when the count changes, but it's not ideal.
I'll add it to our backlog.

Custom Tabgroup Appcelerator

I'm trying to make a custom tabgroup in appcelerator in which one (or two) of the tabs is bigger than the rest. I have attached an image of what I'm trying to pull off.
I am able to make a custom tabgroup, but it refreshes each time I change a tab, and I want my tabs to behave like a native tabgroup. Any help would be much appreciated
As you mentioned in a comment, on iOS the tab group it itself a view. You can add views to it, and they will persist regardless of which tab is active. Because you can programmatically change the active tab, you can overlay views on top of the normal tab group and use them to decide which tab should be active.
The following Gist demonstrates this:
https://gist.github.com/853935
I figured out this issue. For anyone that has this same issue in the future this should help: The tabgroup is its own view. If you want to add overlays to it, make a new view, and add it to the tabgroup, NOT to the window itself.
This also looks promising:
https://github.com/viezel/NappUI#tabgroup
You can set a background image for active tab background. The advantage to this approach is that it uses the native iOS API. Actually, it will extend the Titanium tabgroup proxy and add some methods. No hacks required.

Resources