_NDA Disclaimer: In case you hadn't heard, Apple is not enforcing a Non-Disclosure Agreement on code changes and new APIs in the iOS beta releases this time around. While we're not allowed to post screenshots of iOS 8, or release any review-style articles, we ARE allowed to discuss these sorts of code changes publicly._
I'm going to post this issue and leave it open for the time being, since I think I can guarantee that other developers might be wondering about this.
If you haven't watched the WWDC session videos on Cocoa Touch and UIKit yet, you might be surprised to learn that Apple has decided to completely overhaul the iOS paradigm when it comes to the UI handling device rotations. No longer does the code recognise the concept of 'portrait' or 'landscape' orientation modes, but they now simply treat these events as the UI's boundary sizes changing.
Because of this new design paradigm in iOS 8, a LOT of the internal animation code behind UIView
and UIViewController
appears to have been modified, so much so that a lot of the assumptions I had made when developing TOWebViewController
for iOS 6 and iOS 7 no longer directly apply.
After testing the last build of TOWebViewController
in one of my own apps running iOS 8, I discovered that the rotation code was causing the app to crash. I also noticed that the 'snapshot' image displayed when the device is rotated also stopped displaying. I spent a little time this evening and was able to fix the crash, and get the majority of the snapshot animations working properly again on iOS 8, although they sometimes don't match up properly. Those fixes are now pushed to this library, but not submitted to CocoaPods yet.
In any case, given past iOS beta releases, it's pretty likely that iOS 8 will undergo a pretty heavy set of revisions before it is finally released to the public, so it's probably not worth trying to perfect the class for iOS 8 just yet. As such, I'm going to hold off from any more iOS 8 'fixes' in the codebase until iOS 8 goes gold.
Either way, if you're using TOWebViewController
in one of your apps, and are starting to test for iOS 8, this is something to be aware of. :)
Happy coding!