changed viewWillAppear to setSelectedPageIndex with anited marked to YES. It was causing some issues if navigation controller. PageViewController is now public
Merge pull request #3 from noelrocha/master

changed viewWillAppear to setSelectedPageIndex with animated marked to YES