Skip to content

Commit

Permalink
Merge pull request #9 from dasdom/master
Browse files Browse the repository at this point in the history
updated documentation,
  • Loading branch information
berg committed Dec 27, 2013
2 parents 3c1e043 + ec12209 commit eb51989
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand All @@ -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;
};
Expand Down
3 changes: 1 addition & 2 deletions SDK/ADNLogin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion SDK/ADNLogin.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
Expand Down

0 comments on commit eb51989

Please sign in to comment.