cwRichardKim / RKSwipeBetweenViewControllers

Swipe between ViewControllers like in the Spotify or Twitter app with an interactive Segmented Control in the Navigation Bar
MIT License
1.67k stars 156 forks source link

Putting this into one UIViewController #13

Closed kyco16 closed 9 years ago

kyco16 commented 9 years ago

Is there any way this can be done just in a UIViewController or a page controller? I am not a fan of all this happening in the navigation controller because, if I were to segue some where and then tap on another tab in my tabbar and then return to the tab with this SwipeBetweenViewControllers, there are methods being called that should NOT be called since I am on another view controller in the navigation stack array(such as the delegate method). I understand why it is happening because there is a custom class for the navigation controller in the embedded navigation controller in the storyboard. Maybe I am making this entirely wrong. But if there is an example I am trying to copy, it is Instagram's News Feed. Looks identical to the custom library you have here. The swipe with the almost identical segmented control.

kyco16 commented 9 years ago

Nevermind I fixed all of those problems. I just had to read through some of the syntax in the custom class before I understoond that there was a uipagecontroller implemented inside the .m file.