Skip to content

Commit

Permalink
FAQ: Adding some more details about the native iOS code
Browse files Browse the repository at this point in the history
  • Loading branch information
tjvantoll committed Mar 11, 2015
1 parent 41f91dd commit 8675378
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ exports.pageLoaded = function(args) {
if (applicationModule.ios) {
page.ios.title = "My App";

// Get access to the native iOS UINavigationController and UINavigationBar
var controller = frameModule.topmost().ios.controller;
var navBar = controller.navigationBar;

// Set the UINavigationBar's tintColor and barStyle
navBar.tintColor = new colorModule.Color("#FFFF00").ios;
navBar.barStyle = UIBarStyle.UIBarStyleBlack;

// Call the UINavigationController's setNavigationBarHidden method
controller.navigationBarHidden = false;
}
};
Expand Down

0 comments on commit 8675378

Please sign in to comment.