Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UINavigationBar items not appearing #59

Closed
daisyramos317 opened this issue Apr 6, 2016 · 2 comments
Closed

UINavigationBar items not appearing #59

daisyramos317 opened this issue Apr 6, 2016 · 2 comments

Comments

@daisyramos317
Copy link

enablepush

I am loading the view controller from a storyboard and STPopup Controller is instantiated here
let storyboardID = UIStoryboard(name: "Push", bundle: nil) let popupController: STPopupController = STPopupController(rootViewController: storyboardID.instantiateViewControllerWithIdentifier("enablePush")) popupController.containerView.layer.cornerRadius = 4 popupController.presentInViewController(self)

In viewDidLoad() of this view controller I have:

self.contentSizeInPopup = CGSizeMake(300, 200) self.landscapeContentSizeInPopup = CGSizeMake(400, 200) self.navigationItem.rightBarButtonItem?.image = UIImage(named: "dismissPushIcon") self.navigationItem.title = "Enable Push"

However the navigation bar remains empty as in the picture above.

@daisyramos317 daisyramos317 changed the title UINavigationItems not appearing UINavigationBar items not appearing Apr 6, 2016
@kevin-lyn
Copy link
Owner

@daisyramos317 the code you posted should work. But can you try adding navigation items in storyboard instead?

@daisyramos317
Copy link
Author

I did try adding navigation items in Storyboard as well it still doesn't appear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants