I know that UIViewController's designated initializer is
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
If you call init,according to the documentation it will load the class's same name nib file(if it exist).
But what I encounterd is that sometimes init does do everything right. But sometimes some UIViewController's subclass 's init method just don't load it's nib file. I create them using the same way(using Xcode's assistant to create a UIViewController subclass and it's associated nib file at the same time, so the file name should all be the same).
Why is this happening?