ios - Tab Bar Not Showing -


i have specific view opening when opening app notification. navigation bar shows , navigation works correctly. problem i'm having getting tab bar show up. here didfinishlaunchingwithoptions method.

- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions {     // prevents ua library registering uiapplcation default when     // registerforremotenotifications called. allow prompt     // users @ later time. gives app opportunity explain benefits     // of push or allows users turn on explicitly in settings screen.     // if want prompted push, can     // leave line out.     // [uapush setdefaultpushenabledvalue:no];      //create airship options dictionary , add required uiapplication launchoptions     nsmutabledictionary *takeoffoptions = [nsmutabledictionary dictionary];     [takeoffoptions setvalue:launchoptions forkey:uairshiptakeoffoptionslaunchoptionskey];      // call takeoff (which creates uairship singleton), passing in launch options     // library can record when app launched push notification. call     // required.     //     // populate airshipconfig.plist app's info https://go.urbanairship.com     [uairship takeoff:takeoffoptions];      // set icon badge 0 on startup (optional)     [[uapush shared] resetbadge];      // register remote notfications ua library. call required.     [[uapush shared] registerforremotenotificationtypes:(uiremotenotificationtypebadge |                                                          uiremotenotificationtypesound |                                                          uiremotenotificationtypealert)];      // handle incoming incoming push notifications.     // invoke `handlebackgroundnotification` on uapushnotificationdelegate.     [[uapush shared] handlenotification:[launchoptions valueforkey:uiapplicationlaunchoptionsremotenotificationkey]                        applicationstate:application.applicationstate];      // self.tabbarcontroller = [[uitabbarcontroller alloc] initwithnibname:@"kfbviewcontroller" bundle:nil];     kfbviewcontroller *rootview = [[kfbviewcontroller alloc] initwithnibname:@"kfbviewcontroller" bundle:nil];     kfbnavcontrollerviewcontroller *navcontroller = [[kfbnavcontrollerviewcontroller alloc] initwithrootviewcontroller:rootview];     navcontroller.delegate = rootview;     uiviewcontroller *aboutus = [[aboutus alloc] initwithnibname:@"aboutus" bundle:nil];     kfbnavcontrollerviewcontroller *navcontroller1 = [[kfbnavcontrollerviewcontroller alloc] initwithrootviewcontroller:aboutus];      uiviewcontroller *contactus = [[contactus alloc] initwithnibname:@"contactus" bundle:nil];     kfbnavcontrollerviewcontroller *navcontroller2 = [[kfbnavcontrollerviewcontroller alloc] initwithrootviewcontroller:contactus];      uiviewcontroller *kyfb = [[kyfb alloc] initwithnibname:@"kyfb" bundle:nil];     kfbnavcontrollerviewcontroller *navcontroller3 = [[kfbnavcontrollerviewcontroller alloc] initwithrootviewcontroller:kyfb];      // uiviewcontroller *rsfm = [[rsfm alloc] initwithnibname:@"rsfm" bundle:nil];     // kfbnavcontrollerviewcontroller *navcontroller4 = [[kfbnavcontrollerviewcontroller alloc] initwithrootviewcontroller:rsfm];      // uiviewcontroller *li = [[legislatorinfo alloc] initwithnibname:@"legislatorinfo" bundle:nil];     // kfbnavcontrollerviewcontroller *navcontroller5 = [[kfbnavcontrollerviewcontroller alloc] initwithrootviewcontroller:li];      // uiviewcontroller *events = [[events alloc] initwithnibname:@"events" bundle:nil];     // kfbnavcontrollerviewcontroller *navcontroller6 = [[kfbnavcontrollerviewcontroller alloc] initwithrootviewcontroller:events];     self.window = [[uiwindow alloc] initwithframe:[[uiscreen mainscreen] bounds]];      //self.viewcontroller = [[kfbviewcontroller alloc] initwithnibname:@"kfbviewcontroller" bundle:nil];     //self.window.rootviewcontroller = self.viewcontroller;     self.tabbarcontroller = [[kfbtabbarviewcontroller alloc] init];     self.tabbarcontroller.viewcontrollers = @[navcontroller, navcontroller1, navcontroller2, navcontroller3];     // self.tabbarcontroller.customizableviewcontrollers = nil;      self.window.rootviewcontroller = self.tabbarcontroller;     self.window.backgroundcolor = [uicolor whitecolor];     [self.window makekeyandvisible];      // if application launched due  notification,present view controller.     uilocalnotification *notification = [launchoptions objectforkey:uiapplicationlaunchoptionsremotenotificationkey];      if (notification)     {         actionalertsviewcontroller *actionalerts = [[actionalertsviewcontroller alloc] initwithstyle:uitableviewstyleplain];         webviewcontroller *wvc = [[webviewcontroller alloc]init];         [actionalerts setwebviewcontroller:wvc];         kfbnavcontrollerviewcontroller *navcontroller7 = [[kfbnavcontrollerviewcontroller alloc] initwithrootviewcontroller:actionalerts];         [self.window.rootviewcontroller presentviewcontroller:navcontroller7 animated:no completion:nil];     }      return yes; } 


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -