I\'ve created an application for child game.
It loads 12 different questions for each round. After the 4th round the app crashes with the following log:
Another common issue is trying to load a nib in the init methods of viewControllers. Should be in viewDidLoad.
set your button click image like this :
NSString *path1 = [[NSBundle mainBundle] pathForResource:@"btn_twelve_month" ofType:@"png"];
[btn_twelve_month setImage:[UIImage imageWithContentsOfFile:path1] forState:UIControlStateNormal];
instead of this :
[btn_twelve_month setImage:[UIImage imageNamed:@"btn_twelve_month.png"] forState:UIControlStateNormal];
It works..
There is a chance that Base Internationalization will cause a crash with the same error message, because the feature is only supported in iOS 5 and above!
However, since you can start the app and it crash only after a while, it should not be due to Base Internationalization.
You may renamed your ViewController That should be updated in AppDelegate file so navigate to AppDelegate.m and do the following.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.viewController = [[XXXXViewController alloc] initWithNibName:@"XXXXXViewController" bundle:nil];
In that XXXX rename your latest ViewController name(i.e renamed ViewControllerName).Now It will work .
It looks like you're trying to instantiate a nib called ThemePickerController.nib and it isn't present. Is the nib included as a project member?
It is easy... select the XIB file and make sure the desired target of the project is checked under the "Target Membership" section (under the "Show the file inspector" tab), and your problem is solved.
It is usually happening when you made a copy of an exists file and added to the project manually because in that case you should check the above mentioned target manually as well.