right method for getting current user in iOS

is it the right way for getting the current user :

print(“current user : (self.backendless.userService.currentUser)”) ???

i tried to follow this https://backendless.com/documentation/users/ios/users_get_current_user.htm

hi Billion
I’m wondering this question. I want to get current user’s id.


I did it but it get nil.

Hi Billion, Alican,

You should firstly login user - and only then you get currentUser.
If you didn’t log in, or logged out - then backendless.userService.currentUser == nil.

Please see the Login doc.


Thank you Vyacheslav.

I have a question.I need your help Vyacheslav. http://support.backendless.com/t/how-can-i-list-file-directory-in-ios