# ParseChat Hints (iOS: Objective-C) ## If you see errors in Terminal such as **`command not found`** or **`env: node: no such file or directory`** when installing Node or Parse Dashboard... - [Click this link](https://hackmd.io/@tejen/SyePL1Z1D) to see more hints on Terminal errors ## Do we need an email field to create a successful PFUser? As developers it is so crucial to read up on documentation. They were written so developers can better understand the various SDKs, APIs they are using. It is a great skill to be able to read documentation. I reccomend reading through the guide below to see if it is necessary for creating a user. **Parse Guide** (https://guides.codepath.org/ios/Building-Data-driven-Apps-with-Parse#fetching-data-from-parse-via-pfquery) ## I am not able to get any messages showing in my table view Did you make sure to pass in the correct `Class Name` and make sure the filter `query` you are adding are accurate for what type of data you want to return? ## I don't see my username showing up when I create a message :( Did you make sure you are sending back the `currentUser` object when sending your message ## I am having trouble showing other users names when adding the values from dictionary to ChatCell I would set break points at your NSDictionary of chats to see what is being returned in there. If you see a user object in there, you should set that value to the `PFUser` object key right. ## Why is my AppDelegate code not working for Persist Logged In User Milestone With iOS 13, there were changes to how we implement the root view controller window. There is now a file called `SceneDelegate.m`. You should move your code over to the following method in `SceneDelegate.m ` ``` - (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions { //insert in the code block that we want for (user != nil) } ``` And there you go. You should now have the Persist Logged In User Milestone working. Want to learn more about SceneDelegate? **Apples Documentation:** (https://developer.apple.com/documentation/uikit/uiscenedelegate) ## I am able to log out the user but my screen doesn't return to the Login View Controller With iOS 13, Scene Delegate was introduced. We need to make an instance of the SceneDelegate in order to return to the Login View. Try out this line and make use of the scene Delegate for setting the `rootViewController` after logout ``` SceneDelegate *myDelegate = (SceneDelegate *)self.view.window.windowScene.delegate; ```