UIMoviePlayerControllerDidEnterFullscreenNotification doesn’t work in iOS8

The implementation by markussvensson has some false alarms, since any UIWindowDidBecomeVisibleNotification is considered as a full screen video playback which is not true. The implementation “AVPlayerItemBecameCurrentNotification” by Selvin can catch movie playback start, but cannot catch movie playback stop. So I combined both implementations and it works as expected. Add observer to both AVPlayerItemBecameCurrentNotification & … Read more

How to Migrate to WKWebView?

UIWebView will still continue to work with existing apps. WKWebView is available starting from iOS8, only WKWebView has a Nitro JavaScript engine. To take advantage of this faster JavaScript engine in older apps you have to make code changes to use WKWebView instead of UIWebView. For iOS7 and older, you have to continue to use … Read more

iPhone UIWebView local resources using Javascript and handling onorientationChange

The answer can be traced from the warning I was getting in XCode: warning: no rule to process file ‘$(PROJECT_DIR)/html/orientation.js’ of type sourcecode.javascript for architecture i386 XCode setup *.js javascript as some type of source code needed to be compiled in the application when I wanted to include it as a resource so I solved … Read more