Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8539855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:27:57+00:00 2026-06-11T11:27:57+00:00

I’m new to obj-c/iOS/parse so this is a basic question. I’ve managed to get

  • 0

I’m new to obj-c/iOS/parse so this is a basic question.

I’ve managed to get the login and sign up controllers to appear in my code, but I don’t understand where does the hook go to start my own game code, once the user has signed up/logged in? In the parse iOS guide you have code examples like this…

PFUser *currentUser = [PFUser currentUser];

if (currentUser) {

// do stuff with the user
} else {

// show the signup or login screen
}

or…

[PFUser logInWithUsernameInBackground:@"myname" password:@"mypass" block:(PFUser user, NSError error) {

if (user) {
    // Do stuff after successful login.
} else {
    // The login failed. Check error to see why.
}
}];

But I don’t see similar code in the login/sign up tutorial code, just something about protocols and delegates?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:27:58+00:00Added an answer on June 11, 2026 at 11:27 am

    your kind of mixing the old manual login approach with the fairly new viewcontroller approach, although both are still valid.

    If you follow the tutorial, use the test on PFUser to decide if you should show the login controller. If you are new to IOS, then you will need to brush up on protocols and delegates because its a pattern you will see used frequently.

    Basically, a protocol is pre-defined set of methods that allow two objects to work together, while knowing very little about each other. So it allows objects to be very modular and abstract. A delegate is a way that one object informs the other that is wants to work together using the protocol.

    When you fire up the parse login view controller, you have to set yourself as its delegate, once you do that, you can receive messages from it about the success or failure of someone logging in.

    So, you simply fire it up, set yourself as the delegate then present it.

    when a user logins in successfully, the parse login view controller will send a message to you looking for a certain method to exist. If you have it, then it will be called (or possibly crash if not). So in this case, in your view controller that is presenting the parse login view controller, you should also implement (by having them there) the login success method and login failure method. I show the login success method below. If you implement that, the first line dismisses the login view controller. you would then add a method call to start your program possibly in the completion block or just below it.

    // Sent to the delegate when a PFUser is logged in.
    - (void)logInViewController:(PFLogInViewController *)logInController didLogInUser:(PFUser    *)user {
    [self dismissViewControllerAnimated:YES completion:NULL];
    [self startMyApplication];  //example
    

    }

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I want use html5's new tag to play a wav file (currently only supported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.