ios - Multiple UIViewControllers simultaneously -
i have uitableview in navigation controller occupying entire screen. have smaller custom uiview needs slide bottom, squeezing table view 100 pixels. custom view needs static, not moving while user navigates tableview. ive been told not have 2 uiviewcontrollers (vc) managing views on same screen.
currently, appdelegate adds subview window vc, loads tableview , custom view
[self addsubview:tablviewcontroller.view]; [self addsubview:customviewcontroller.view];
how should implemented?
the way structure follows: have uiviewcontroller subclass view takes entire screen. have 2 subviews. first subview: view of uinavigationcontroller contains table view controller. second subview: custom uiview.
have uinavigationcontroller's frame set entire bounds of main view controller's view , custom view's frame below visible area of screen.
when need slide view, use uiview animation animate changing frame of uinavigationcontroller's view decreasing height , change frame of custom uiview changing y coordinate in-frame.
Comments
Post a Comment