raghul
raghul

Reputation: 1048

Hiding Navigation bar in JASidePanels and display custom navigation bar

How to hide the navigation bar of the center panel in JASidePanel and show custom bar and also have a custom button and then show the left panel of the controller??

The link is

https://github.com/gotosleep/JASidePanels

and also how to manage memory for the center panel?

Upvotes: 1

Views: 2092

Answers (1)

Ric Santos
Ric Santos

Reputation: 16467

You should try reading the header file JASidePanelController.h as it explains most of your questions.

To hide the navigation bar, on the centre panel do something like:

[sidePanelController.centerPanel.navigationController setNavigationBarHidden:YES animated:YES];

To customise the bar, try:

[[UINavigationBar appearance] setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];

To show the custom button, subclass JASidePanelController and override:

+ (UIImage *)defaultImage;

Finally, to show the left panel, try:

[sidePanelController showLeftPanelAnimated:YES];

Upvotes: 1

Related Questions