From ec122095626aab494a2e59afb80811853b027f86 Mon Sep 17 00:00:00 2001 From: dasdom Date: Thu, 26 Dec 2013 16:54:42 +0100 Subject: [PATCH] updated documentation, changed == operator to `isEqual:` which is better for objects, changed the deployment target because the project would not compile --- .../ADNLoginSample/ADNLoginSample.xcodeproj/project.pbxproj | 2 ++ SDK/ADNLogin.h | 3 +-- SDK/ADNLogin.m | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Examples/ADNLoginSample/ADNLoginSample.xcodeproj/project.pbxproj b/Examples/ADNLoginSample/ADNLoginSample.xcodeproj/project.pbxproj index ac66d18..761964d 100644 --- a/Examples/ADNLoginSample/ADNLoginSample.xcodeproj/project.pbxproj +++ b/Examples/ADNLoginSample/ADNLoginSample.xcodeproj/project.pbxproj @@ -299,6 +299,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "ADNLoginSample-Prefix.pch"; INFOPLIST_FILE = "ADNLoginSample-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = app; }; @@ -310,6 +311,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "ADNLoginSample-Prefix.pch"; INFOPLIST_FILE = "ADNLoginSample-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = app; }; diff --git a/SDK/ADNLogin.h b/SDK/ADNLogin.h index c46a5ba..4719beb 100644 --- a/SDK/ADNLogin.h +++ b/SDK/ADNLogin.h @@ -52,6 +52,7 @@ typedef void (^ADNLoginStoreCompletionBlock)(SKStoreProductViewController *store Called when fast-switching back from App.net Passport with valid login credentials. @param userID The user ID of the logged-in user. + @param username The user name of the logged-in user. @param accessToken An access token authorized with the requested permissions. */ - (void)adnLoginDidSucceedForUserWithID:(NSString *)userID username:(NSString *)username token:(NSString *)accessToken; @@ -148,8 +149,6 @@ typedef void (^ADNLoginStoreCompletionBlock)(SKStoreProductViewController *store /** Request login. - @param scopes A list of the requested authentication scopes. - @return `YES` if App.net Passport was launched to request login, `NO` if it was not installed or unable to open */ - (BOOL)login; diff --git a/SDK/ADNLogin.m b/SDK/ADNLogin.m index f9d603c..7397cee 100644 --- a/SDK/ADNLogin.m +++ b/SDK/ADNLogin.m @@ -349,7 +349,7 @@ - (void)productViewControllerDidFinish:(SKStoreProductViewController *)viewContr [self beginPollingWithDuration:kADNLoginShortPollingDuration]; // Do not dismiss if the delegate has been changed. - if (viewController.delegate == self) { + if ([viewController.delegate isEqual:self]) { [viewController.presentingViewController dismissViewControllerAnimated:YES completion:nil]; } }