My app delegate looks like
[self.splashScreen viewWillDisappear:NO];
self.window.rootViewController = tabBarController;
educationButton=[[UIEducationButtonController alloc] init];
[window addSubview: educationButton.view];
[self.window makeKeyAndVisible];
And, my UIEducationButtonController looks like:
@implementation UIEducationButtonController
- (void)viewDidLoad {
[super viewDidLoad];
UIButton *educationButton = [[UIButton alloc] init];
}
@end
And that causes my app to freeze in iPhone 4.3 simulator. Any ideas why?
(This might seem like a very specific, nonsensical question but I’m trying to figure out what’s wrong with my implementation theory.)
UIButton doesn’t have an init method defined – use:
class method to instantiate the button instead.