Skip to content
Browse files

Tallphone support.

  • Loading branch information...
1 parent 1b77a40 commit b2390d401818dbe110fb9acc808da6af2405d3e5 @nfarina committed Sep 24, 2012
View
4 SampleProject/AppDelegate.m
@@ -14,7 +14,7 @@ @implementation AppDelegate {
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
- self.window = [[UIWindow alloc] initWithFrame:CGRectMake(0, 20, 320, 460)];
+ self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].applicationFrame];
self.window.backgroundColor = [UIColor whiteColor];
CGRect half = CGRectMake(0, 0, self.window.frame.size.width, self.window.frame.size.height/2);
@@ -34,7 +34,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
scrollView.contentOffset = CGPointMake(150, 50);
topPin = [[MKPinAnnotationView alloc] initWithAnnotation:nil reuseIdentifier:@""];
- topPin.center = CGPointMake(half.size.width/2 + 230, half.size.height/2 + 120);
+ topPin.center = CGPointMake(half.size.width/2 + 230, half.size.height/2 + 100);
[topPin addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(topPinTapped)]];
[marsView addSubview:topPin];
View
4 SampleProject/CalloutViewSamples.xcodeproj/project.pbxproj
@@ -14,6 +14,7 @@
0145C74615D32505007244F3 /* mars.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 0145C74515D32505007244F3 /* mars.jpg */; };
017FD73F15D317B1006825B3 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 017FD73D15D317A5006825B3 /* AppDelegate.m */; };
017FD74015D317B1006825B3 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 017FD73C15D3162C006825B3 /* main.m */; };
+ 01A1D514161129080021F8DD /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 01A1D513161129080021F8DD /* Default-568h@2x.png */; };
01A6EE6515D49BD500E895D6 /* SMCalloutView.m in Sources */ = {isa = PBXBuildFile; fileRef = 01A6EE6415D49BD500E895D6 /* SMCalloutView.m */; };
01A6EE7915D572C300E895D6 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01A6EE7815D572C300E895D6 /* QuartzCore.framework */; };
/* End PBXBuildFile section */
@@ -30,6 +31,7 @@
017FD73C15D3162C006825B3 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = SOURCE_ROOT; };
017FD73D15D317A5006825B3 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = SOURCE_ROOT; };
017FD73E15D317A5006825B3 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = SOURCE_ROOT; };
+ 01A1D513161129080021F8DD /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = SOURCE_ROOT; };
01A6EE6315D49BD500E895D6 /* SMCalloutView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SMCalloutView.h; path = ../SMCalloutView.h; sourceTree = "<group>"; };
01A6EE6415D49BD500E895D6 /* SMCalloutView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SMCalloutView.m; path = ../SMCalloutView.m; sourceTree = "<group>"; };
01A6EE7815D572C300E895D6 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
@@ -108,6 +110,7 @@
017FD73B15D3162C006825B3 /* CalloutViewSamples-Prefix.pch */,
017FD73C15D3162C006825B3 /* main.m */,
0145C74515D32505007244F3 /* mars.jpg */,
+ 01A1D513161129080021F8DD /* Default-568h@2x.png */,
);
name = "Supporting Files";
sourceTree = "<group>";
@@ -163,6 +166,7 @@
buildActionMask = 2147483647;
files = (
0145C74615D32505007244F3 /* mars.jpg in Resources */,
+ 01A1D514161129080021F8DD /* Default-568h@2x.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
BIN SampleProject/Default-568h@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b2390d4

Please sign in to comment.
Something went wrong with that request. Please try again.