iOS 8.0 with TabbarItem in new icon

Leave a comment

1, for general guideline of adding icon into tabbar item, please check up with http://codewithchris.com/ios-tab-bar-app/

2, for how to set the selectedimage in storyboard, please check up with http://stackoverflow.com/questions/21386101/setting-selected-image-in-tab-bar-controller-with-storyboard

take care: here use Key value path mapping for image, instead of setting selectedimage in storyboard

3, for iOS 8.0 compatable icon template, please refer to  https://icons8.com/free-ios-7-icons-in-vector/

4, for generate iOS 8.0 icon by your own, please refer to

5, for how to change tint color in iOS 8.0, still in follow-up

6, navigation bar in storyboard design, see solution http://stackoverflow.com/questions/11083521/no-top-navigation-bar-in-a-tab-bar-controller-application

  • Solution: tabbarcontroller as initial and root controller, embedded for subtabbarcontroller in navigation controller

tabbarcontroller and navigationcontroller in storyboard

[TODO  by orlando, verified in apple officialsite for this in Combined View Controller Interfaces]

7, set title for tabbarcontroller or navigationcontroller, see   http://stackoverflow.com/questions/2040415/uinavigationcontroller-title-is-not-displayed and http://stackoverflow.com/questions/1540718/self-title-sets-navigationcontroller-and-tabbaritems-title-why

briefly speaking,

Every view controller has a navigation item. You are changing the navigation item of the navigation controller… but that will never be seen unless the navigation controller was inside another navigation controller! Instead of
self.navigationController.navigationItem.title = @"hai";

you want

self.navigationItem.title = @"hai";

or, if your navigation item’s title is nil, the navigation controller will use your view controller’s title:

self.title = @"hai";

You should simply set the view title, which is used by both navigation bars and tab bars, unless you want to specify a different title for each of those for some reason.

8, Using Auto Layout in UITableView for dynamic cell layouts & variable row heights, see autolayout theory in stackoverflow.

Advertisements

iPhone iPad In Action

Leave a comment

Last Friday, I bought one book called <iPhone and iPad in Action>. Just taking a glance at it, with a full-covered topic for iOS SDK.

In order to find the original version of this book, search in CSDN, and attached into my SkyDrive,

Shared with guys, who are interested with iOS development, iPhone_and_iPad_in_Action [I called it iOS in action].

Honestly speaking, it’s just a manual for taking action, regarding system perspective and API in deep, I think programming guideline and <MacOSX_Internals_A_Systems_Approach>, better!!!

Absolutely, know how-to run, I prefer to know how-is-the-behind. 🙂 Hope you like it.