NimbleKit - fast iOS app development

Understanding tab bars

Problem discussions

Re: Understanding tab bars

Postby ryubr » Sun Jun 21, 2009 7:27 pm

Thanks cutemaster and Andy :-)
ryubr
NimbleKit Expert
 
Posts: 445
Joined: Fri Jun 19, 2009 5:36 am

Re: Understanding tab bars

Postby Mr.Magoo » Mon Dec 14, 2009 8:55 pm

Hi,

Very useful. Thanks.

Is it possible with setTabBarForPage function to add one of the OS standard icons (see below) ?


icons.tiff
icons.tiff (96.42 KiB) Viewed 786 times
Mr.Magoo
 
Posts: 3
Joined: Sun Dec 13, 2009 7:12 pm

Re: Understanding tab bars

Postby sunny » Mon Dec 14, 2009 9:08 pm

not yet, but that will be added later
User avatar
sunny
Staff
 
Posts: 2666
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: Understanding tab bars

Postby eras3r » Thu Dec 17, 2009 9:13 pm

If you add more than 5 icons, instead of the 5th the icon "more" is shown.
Is there a way to translate change the text "more" in order to localize it? If so, where do we have to modify the script?

Eras3r
User avatar
eras3r
 
Posts: 169
Joined: Fri Nov 20, 2009 10:53 pm

Re: Understanding tab bars

Postby sunny » Sun Jan 10, 2010 5:48 pm

@eras3r: open your APP_NAME_info.plist file and add "Localization native development region" key with value "English", "Spanish", etc
@Mr.Magoo: added functionality to use standard icons, instead of image name you will need to specify number of the icon in set, for example:
Code: Select all
tabbar.setTabBarForPage("1.html", "1", "6"); // use 6th icon from the list (starting from 1, not zero) so the icon used is History 

Here is the list:
UITabBarSystemItemFavorites, // this is 1st, not 0!
UITabBarSystemItemFeatured,
UITabBarSystemItemTopRated,
UITabBarSystemItemRecents,
UITabBarSystemItemContacts,
UITabBarSystemItemHistory, // we used this one in example
UITabBarSystemItemBookmarks,
UITabBarSystemItemSearch,
UITabBarSystemItemDownloads,
UITabBarSystemItemMostRecent,
UITabBarSystemItemMostViewed
User avatar
sunny
Staff
 
Posts: 2666
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: Understanding tab bars

Postby Element » Tue Jul 12, 2011 4:51 pm

I think there's an easier solution for this issue: the ability to hide NKTabBarController.

I think the intent is to have NKTabBarController provide the main divisions for an app. Applications should then use NKNavigationControllers to manage content within each division of the NKTabBarController.

This all makes sense except for one circumstance: Some of those divisions may contain content that should occupy the entire screen. Let's say one of my Tabs is "Movies". When I click that tab, it highlights and the display shows a list of movies. When I click a movie, it should take over the entire screen and obscure the NKTabBarController.

It's important to emphasize that I don't want to loose the structure that NKTabBarController provides, but I just keep running into situations where it's in the way momentarily. I need to be able to hide() and show() the NKTabBarController without destroying it.

By the way, I tried using destroy() and it seems to interfere with NKNavigationContrtoller. I can't destroy NKTabBarController without also taking away NKNavigationController.
Element
 
Posts: 106
Joined: Tue Apr 12, 2011 2:30 am

Re: Understanding tab bars

Postby HalfMoon » Tue Jul 12, 2011 5:41 pm

Element wrote:the ability to hide NKTabBarController.


That would be really handy - like you say for movies or image galleries. If there isn't one in there already, file a feature request.
User avatar
HalfMoon
NimbleKit Guru
 
Posts: 662
Joined: Thu Jun 04, 2009 6:21 pm
Location: Brighton, UK

Re: Understanding tab bars

Postby Element » Tue Jul 12, 2011 5:49 pm

Element
 
Posts: 106
Joined: Tue Apr 12, 2011 2:30 am

Previous

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 2 guests