Switch between multiple views in the same viewcontroller

▼魔方 西西 提交于 2019-12-08 08:10:19

问题


I'm using the Side-out-Navigation-panel in this example and it is easy for me. Now I want to do it in storyboard and I want when select item from list panel to switch between different views in the centerViewController like uitableView or uiview. exactly like facebook.

how can I make switch between different views in the same viewController? Hope anyone got my mean. Thanks in advance.


回答1:


[UIView transitionFromView:self.someView toView:self.tableView duration:.5 options:UIViewAnimationOptionTransitionFlipFromRight completion:^(BOOL finished) {
        //completion block
    }];



回答2:


This Example helped me. It is what I want to do.



来源:https://stackoverflow.com/questions/21363563/switch-between-multiple-views-in-the-same-viewcontroller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!