ios - listviewcontroller leaving room for two tabbars at the bottom when loading the VC programmatically -
when load scene through normal segues, tabbar @ bottom , nice , clean. when come via code, loading tabbarcontroller, nav bar custom vc. loads perfect theres x amount of pixels tabbar, additional x amount of pixels blank between custom vc , tab bar. counting 2 tab bars.
override func prepareforsegue(segue:uistoryboardsegue, sender: anyobject!) { if (segue.identifier == "searchsegue") { let nav = segue.destinationviewcontroller as! uitabbarcontroller let navcontroller = nav.viewcontrollers![0] as! uinavigationcontroller let listcontroller = navcontroller.topviewcontroller as! recipelistviewcontroller listcontroller.ingredientsearch = (self.ingredids string); } }
Comments
Post a Comment