Added the iosTopmostViewController() function.