我应该一起创建 .h .m 和xib文件吗?推荐吗?
我稍后添加了一个TextAudioViewController.xib并将其关联到TextAudioViewController类。我添加了每个网点。
我在 ViewDidLoad 中没有错误。但是在点击 TabBar 后视图仍然是空的。
我想知道是不是因为我没有一起创建所有文件。一种 xib 和类文件之间的缺失链接?
在另一个类中,我一起创建了 .h .m 和 xib 并在点击 TabBar 后成功加载了视图...
已编辑
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    if (self.tabBarController == nil)
    {
        NSArray* languages = [NSLocale preferredLanguages];
        NSString* currentLang = [languages objectAtIndex:0];
        NSString* path = @"";
        if ([currentLang isEqual: @"en"] || [currentLang isEqual: @"fr"] || [currentLang isEqual: @"es"])
        {
            path = [[NSBundle mainBundle] pathForResource:currentLang ofType:@"lproj"];
        }else{
            path = [[NSBundle mainBundle] pathForResource:@"en" ofType:@"lproj"];
        }
        selectedBundle = [NSBundle bundleWithPath:path];
        [self startApplication];
    }
    return YES;
}