kentnguyen / KNSemiModalViewController

KNSemiModalViewController
1.8k stars 279 forks source link

`viewWillAppear:` not called on the presented ViewController #34

Closed besi closed 11 years ago

besi commented 11 years ago

I show a semi-modal UIViewController like so:

self.datePickerVC = ...
[self presentSemiViewController:self.datePickerVC withOptions:nil];

Now In my datePickerVC I assume that viewWillAppear: is called, before my ViewController is presented. This does not seem to be done by KNSemiModalViewController.

besi commented 11 years ago

Currently I can work around the issue by using nonatomic setters or by calling the method myself.

kentnguyen commented 11 years ago

Which OS version are you running on?

besi commented 11 years ago

It's 6.0 but supporting iOS 5.0

Am 28/02/2013 um 13:08 schrieb Kent Nguyen notifications@github.com:

Which OS version are you running on?

— Reply to this email directly or view it on GitHub.

kentnguyen commented 11 years ago

I cannot reproduce the bug. Adding these to KNThirdViewController.m and set a break point, you will see it breaks as expected for both iOS 5 & 6

-(void)viewWillAppear:(BOOL)animated {
  [super viewWillAppear:animated];
  NSLog(@"DO Something");
}