You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/01/27 20:18:57 UTC
[4/4] git commit: Fixed iPad sizing problem.
Fixed iPad sizing problem.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/9db5c341
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/9db5c341
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/9db5c341
Branch: refs/heads/master
Commit: 9db5c3417042e5257cb99c75005a0801a3c90e63
Parents: a2b4ec5
Author: Shazron Abdullah <sh...@apache.org>
Authored: Fri Jan 27 11:17:13 2012 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Fri Jan 27 11:17:13 2012 -0800
----------------------------------------------------------------------
How to Use PhoneGap as a Component.md | 4 ++--
PhoneGap-based Application/Classes/AppDelegate.m | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/9db5c341/How to Use PhoneGap as a Component.md
----------------------------------------------------------------------
diff --git a/How to Use PhoneGap as a Component.md b/How to Use PhoneGap as a Component.md
index 5153b2c..9c37aef 100644
--- a/How to Use PhoneGap as a Component.md
+++ b/How to Use PhoneGap as a Component.md
@@ -97,9 +97,9 @@ It is recommended that you follow the PhoneGap.framework instructions below, the
viewController.useSplashScreen = YES;
-5. Set the **view bounds** (always set this as the last property):
+5. Set the **view frame** (always set this as the last property):
- viewController.view.bounds = CGRectMake(0, 0, 320, 480);
+ viewController.view.frame = CGRectMake(0, 0, 320, 480);
6. **Add** Cleaver to your view:
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/9db5c341/PhoneGap-based Application/Classes/AppDelegate.m
----------------------------------------------------------------------
diff --git a/PhoneGap-based Application/Classes/AppDelegate.m b/PhoneGap-based Application/Classes/AppDelegate.m
index fbe38e0..a0ebe03 100644
--- a/PhoneGap-based Application/Classes/AppDelegate.m
+++ b/PhoneGap-based Application/Classes/AppDelegate.m
@@ -78,7 +78,7 @@
self.viewController.useSplashScreen = YES;
self.viewController.wwwFolderName = @"www";
self.viewController.startPage = @"index.html";
- self.viewController.view.bounds = viewBounds;
+ self.viewController.view.frame = viewBounds;
// over-ride delegates
self.viewController.webView.delegate = self;