Plasma / BufferedNavigationController

UINavigationController that can queue concurrent animation changes without breaking the interface
108 stars 19 forks source link

Push/Pop Not Working When Controller Created Programatically #1

Closed devinfoley closed 12 years ago

devinfoley commented 12 years ago

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 commented 12 years ago

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: https://github.com/Plasma/BufferedNavigationController/issues/1