This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)signIn:(int)socialNetworkType { | |
//! Method to launch authorization modal dialog for Twitter or LinkedIn | |
NSURL *requestURL; | |
NSURL *authorizeURL; | |
NSURL *accessURL; | |
NSString *scope; | |
if (socialNetworkType == kSignupSocialLinkedIn) { | |
// LinkedIn OAuth token request URLs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Customize the appearance of table view cells. | |
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { | |
ToolAppImportContactCell *cell = (ToolAppImportContactCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier]; | |
// Grab LinkedIn User Data | |
// LinkedInUser is a custom object container for name, LinkedInID and avatar URL | |
LinkedInUser *person = [self.list objectAtIndex:indexPath.row]; | |
// Generate NSString to display in cell | |
cell.nameLabel.text = [NSString stringWithFormat:@"%@ %@",(person.name?person.name:@""),(person.name_last?person.name_last:@"")]; | |
// Display the LinkedIn User's status (ie., location) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) dismissView { | |
//! Dismiss the veiw depending on the context, whether from the Signin view or Invitation view | |
if ([[UserManager sharedUserManager] getUserState] <= kFFUserStateUnregistered) { // was == kFFUserStateFirstTimeUser | |
fieldforcebetaAppDelegate *myApp = (fieldforcebetaAppDelegate *)[UIApplication sharedApplication].delegate; | |
myApp.tabBarController.selectedIndex = [myApp getTabIndexForTag:6]; | |
[[NSNotificationCenter defaultCenter] postNotificationName:@"launchSequenceCompleted" object:self userInfo:nil]; | |
} |
NewerOlder