Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

PFUser Automatic Login [Objective-C]

Hello,

So I'm having this issue where the PFUser automatically logs in the user into my app which is integrated with Parse through objective-c. I know this because I got an error once which said that username could not be found. I do something like this to get the username and display it:

self.sentFromLabel.text = user.username;

So that is why I took an inference that the user sent a message without properly logging in. Is there any way I can disable the Parse automatic app-opening login system?

Thanks for any help,

Arman

1 Answer

Is there any way I can disable the Parse automatic app-opening login system?

Would you really want your users to have to log in each time they open the app?

I think you should try and track down the problem and see if it happens again. Disabling the caching of the current user is probably not a good fix for this problem

Hello Stone Preston,

I don't really want the users to log in each time. I chose that route because I saw that the app isn't actually caching the current user, and if it is it was caching a blank user. I know this because when I sent a message I couldn't open it because one of the textfields were empty and I debugged the app to find that the textfield was where the person who sent the messages value was supposed to be. Do you think it can be some sort of multitasking activity in iOS?

Regards,

Arman