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

fix error when embed in tab bar controller. #15

Closed nashsu closed 9 years ago

nashsu commented 9 years ago

move code in viewWillAppear to viewDidLoad to avoid error when embed in tab bar controller.

cwRichardKim commented 9 years ago

I'll make a note in the readme for anyone else with this problem, but I actually put those functions there for a reason. It's not guaranteed that the scrollview will be there at viewDidLoad because Apple clearly doesn't want us to play with it (we're playing with it anyway). ViewWillAppear guarantees that. I appreciate the input though!!