Fix crash when setting selectedIndex before view appears.

As you are setting the current view controller in viewWillAppear this should not cause any side effects. This should fix issue #1. If accepted, I hope you can send an update to the podspec soon :)