I have an iOS app using the latest Salesforce iOS SDK. It authenticates users through a webview using oAuth2.0 on the Salesforce site so I do not capture the username in my app
username of current user is stored in SFIdentityData object
#import "SFIdentityData.h" NSString *userName = [SFAccountManager sharedInstance].idData.username;