Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed iOS 3 specific code from the documentation. The library now r…

…equires iOS 4 or later.
  • Loading branch information...
commit 848450fb3c056dc9a67765297a74f472e9d7f7a2 1 parent 0bbf352
pocketpixels authored

Showing 2 changed files with 5 additions and 10 deletions. Show diff stats Hide diff stats

  1. +3 8 README.md
  2. +2 2 TestApp/Classes/TestAppDelegate.m
11 README.md
Source Rendered
@@ -190,8 +190,7 @@ Next you need to implement the handling of your app being launched via the custo
190 190 3. Get the passed in `UIImage*` by calling `[[PALManager sharedPALManager] popPassedInImage]`
191 191 4. Display the image in your app and proceed to your app's main editor UI.
192 192
193   -Because the way that custom URL launches are handled has changed multiple times throughout the history of iOS, getting things to work right on all versions of iOS can be a little tricky.
194   -We recommend using the following structure, which should do the right thing for iOS 3.0 and later:
  193 +We recommend using the following structure in your app delegate, which should do the right thing for iOS 4.0 and later:
195 194
196 195 ```objective-c
197 196 // Handle the URL that this app was invoked with via its custom URL scheme.
@@ -217,12 +216,8 @@ We recommend using the following structure, which should do the right thing for
217 216
218 217 NSURL* launchURL = [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey];
219 218 if (launchURL != nil) {
220   - // In iOS4 and later application:handleOpenURL: or application:openURL:sourceApplication:annotation
221   - // are invoked after this method returns.
222   - // However in iOS3 this does not happen, so we have to call our URL handler manually here.
223   - if ([[[UIDevice currentDevice] systemVersion] floatValue] < 4.0f) {
224   - return [self handleURL:launchURL];
225   - }
  219 + // application:handleOpenURL: or application:openURL:sourceApplication:annotation are invoked
  220 + // after this method returns to handle the URL and perform additional setup
226 221 }
227 222 else {
228 223 // normal launch from Springboard
4 TestApp/Classes/TestAppDelegate.m
@@ -77,8 +77,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
77 77
78 78 NSURL* launchURL = [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey];
79 79 if (launchURL != nil) {
80   - // application:handleOpenURL: or application:openURL:sourceApplication:annotation are invoked afterward
81   - // this method returns to handle the URL and perform additional setup
  80 + // application:handleOpenURL: or application:openURL:sourceApplication:annotation are invoked
  81 + // after this method returns to handle the URL and perform additional setup
82 82 }
83 83 else {
84 84 // normal launch from Springboard

0 comments on commit 848450f

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