• langonej
  • 0 Points
  • Member since 2013

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 0

I've spent way too many long nights on this.  My app is 95% done except I need this last little bit to work.


What I think I've learned:


- latest version doesn't use SFNativeRestAppDelegate.*m* - which means all of the answers I found via Google (like this: http://www.sundoginteractive.com/sunblog/posts/ios-salesforce-sdk-tips ) on how to get the current userId in a separate class/View doesn't work.


I've tried declaring a new instance of SFOAuthCredentials and of SFIdentityData (which I think is the correct one of the two):


    SFOAuthCredentials *class7Instance = [[SFOAuthCredentials alloc] init];
    NSString *stringValue7 = class7Instance.userId;




I'm not an iOS developer by trade but I've got my app all working except I need to extract the userId to take some additional logic (code already written).


Can someone help?  I'm interested in using the latest version, not ZKSForce or an older version of the SFDC Mobile SDK unless I really really have to.


I think it's something pretty simple.


When I've tried declaring an instance or setting NSUserDefaults, in debugger the string values are always 00000.