Closed markrickert closed 9 years ago
This is strange. viewWillAppear(animated)
should delegate through view_will_appear(animated)
and subsequently will_appear
.
@jamonholmgren I just pushed up the failing tests so you can take a look.
OK thanks @markrickert !
@ryanlntn , would you want to take a look?
On it @jamonholmgren !
@markrickert @jamonholmgren defining view_will_appear(animated)
in the screen causes specs to pass. I'm still not sure why that isn't in turn calling will_appear
.
@ryanlntn Do you mean defining it like this? Perhaps the side screens aren't including PM::ScreenModule
properly?
@jamonholmgren Yep. The side screens are just PM::TableScreen
s. We're not doing anything different there.
@markrickert I took a look at this again today and I think the issue may actually be with the tests and not the lifecycle methods. The simple app that I spun up to try to recreate this does call the lifecycle methods: Video
@markrickert Closing this issue for now. Feel free to reopen if I'm missing something.
A left or right menu that is a PM::Screen doesn't get sent the normal PM lifecycle methods like
will_appear
,did_appear
, etc. However you can implement their objective-c counterparts and they'll be called.I have tests that fail for this scenario but i can't push them up at the moment because the public library I'm at blocks port 22 :cry: