Когда я создаю проект и нажимаю логин. Мой первый вид открывается, но табуляция не отображается. Однако только тогда, когда я выхожу из системы и выхожу из нее, он появляется. Я не уверен, что он не загружается или еще что-то еще.Tabbar не отображается, когда приложение создается после входа в систему. Только один раз я выхожу из системы и обратно в
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
[Parse setApplicationId:@"wcxqk8AoeQQPHWHdF1UJG0bqq8Plk6LuYLx2UuFX"
clientKey:@"GPuouYfJOMCxMYpQbdb2Eh1sRgvYbdnQav1vQyQT"];
[PFFacebookUtils initializeFacebookWithApplicationLaunchOptions:launchOptions];
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
{
[[UINavigationBar appearance] setBarTintColor:[UIColor colorWithRed:0.106 green:0.588 blue:0.98 alpha:1]];
NSShadow *shadow = [[NSShadow alloc] init];
shadow.shadowColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.8];
shadow.shadowOffset = CGSizeMake(0, 0);
[[UINavigationBar appearance] setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys:
[UIColor colorWithRed:245.0/255.0 green:245.0/255.0 blue:245.0/255.0 alpha:1.0], NSForegroundColorAttributeName,
shadow, NSShadowAttributeName,
[UIFont fontWithName:@"HelveticaNeue-Bold " size:21.0], NSFontAttributeName, nil]];
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
}
else
{
}
[PFAnalytics trackAppOpenedWithLaunchOptions:launchOptions];
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
{
[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
[[UIApplication sharedApplication] registerForRemoteNotifications];
}
else
{
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)];
}
PFInstallation *currentInstallation = [PFInstallation currentInstallation];
NSLog(@" SAVEE %@ ",[[PFInstallation currentInstallation] objectId]);
[currentInstallation save];
[[FBSDKApplicationDelegate sharedInstance] application:application
didFinishLaunchingWithOptions:launchOptions];
return YES;
}