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

Push/Pop Not Working When Controller Created Programatically #1

Closed
devinfoley opened this issue Feb 29, 2012 · 1 comment
Closed

Push/Pop Not Working When Controller Created Programatically #1

devinfoley opened this issue Feb 29, 2012 · 1 comment

Comments

@devinfoley
Copy link

Hello,

I'm trying to use the BufferedNavigationController programmatically, outside of IB. I simply replaced all my references to UINavigationController to BufferedNavigationController. So far, my calls to push and pop aren't doing anything.

Any idea what could be going wrong? Does the class work without using IB?

Thanks!
Devin

@Plasma
Copy link
Owner

Plasma commented Feb 29, 2012

Hey Devin,

What errors are you seeing? Does the application crash? Have you tried
making a simple demo project?

You may want to check the custom init() method is being called by your code
(perhaps you're using an init() overload to UINavigationController that
does not call BufferedNavigationController's base init() method).

See
https://github.com/Plasma/BufferedNavigationController/blob/master/BufferedNavigationController.m#L36
for
the method in question, that's what I would check first.

Most likely self.stack is null (and so any push/pull method calls return
null to the class, so nothing happens).

Cheers,
Andrew

On Wed, Feb 29, 2012 at 6:26 PM, Devin Foley <
reply@reply.github.com

wrote:

Hello,

I'm trying to use the BufferedNavigationController programmatically,
outside of IB. I simply replaced all my references to
UINavigationController to BufferedNavigationController. So far, my calls to
push and pop aren't doing anything.

Any idea what could be going wrong? Does the class work without using IB?

Thanks!
Devin


Reply to this email directly or view it on GitHub:
#1

@Plasma Plasma closed this as completed Mar 5, 2012
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