replace 'viewController.view.frame' to 'viewController.view.bounds', to avoid issues in landscape mode.