replace 'viewController.view.frame' to 'viewController.view.bounds', to avoid issues in landscape mode.
Merge pull request #27 from zhiyi7/master

Use bounds instead of frame to determine the size of the view controller