I have an application that enabled that user to switch language at run-time from app,every thing is OK but when switch to another language load Load localized Xib for this language but without any images inside this Xib.below my code that is used to switch to anther language.
NSString* str = [[[NSUserDefaults standardUserDefaults]valueForKey:@"AppleLanguages"] objectAtIndex:0];
NSBundle* bnd = [NSBundle bundleWithPath:[[NSBundle mainBundle]pathForResource:str ofType:@"lproj" ]];
HomeViewController *homeVC = [[HomeViewController alloc] initWithNibName:@"HomeViewController" bundle:bnd];
UINavigationController *localNavigationController = [[UINavigationController alloc] initWithRootViewController:homeVC];
localNavigationController.viewControllers = [NSMutableArray arrayWithObject:homeVC];
localNavigationController.navigationBarHidden = YES;
NSMutableArray *navs = [NSMutableArray arrayWithObject: localNavigationController];
tabBarController.viewControllers = navs;
self.window.rootViewController = tabBarController;
and here is the error occur in Xcode debug
Could not load the "sahdow.png" image referenced from a nib in the bundle with identifier "(null)"
I am very please to help me to solve this problem it takes from me many hours.