GOOD NEWS

GOOD NEWS
Ask For The Truth...

Friday, July 13, 2012

A Beautiful Login Screen For Your Mobile App

A Beautiful Login Screen For Your Mobile App:
Writing a login view for a mobile app is typically a lot of work. The complexity originates partially from the the multitude of login options your mobile app may support; username/password, Facebook, Twitter are among the popular choices. In addition, the login controller needs to handle the cases when the device is offline, when the user forgets his username/password, or when the server is down. Worst of all, just before you think you are done, you need to write a similar controller for sign up.

The above considerations make writing a login screen a daunting task.
Today, we are going to change that with the release of a drop-in view controller which handles all these edge cases for you.

Welcome to PFLogInViewController in the Parse framework. With this class, creating a functional login view controller literally takes a minute. All you need to do is to create it and present it modally:

PFLogInViewController *logInController = [[PFLogInViewController alloc] init];
logInController.delegate = self;
[self presentModalViewController:logInController animated:YES];


With these few lines of code, you will get a beautiful login screen, which is shown below. By default, it comes with login functionalities that include username/password field, a password forgotten button, and a sign up button.



Default PFLogInViewController



PFLogInViewController with all elements



Reskinned PFLogInViewController


What if you also want to support Facebook and Twitter? The PFLogInViewController class is configurable, which means you can turn any feature on and off:

PFLogInViewController *logInController = [[PFLogInViewController alloc] init];
logInController.delegate = self;
logInController.fields = PFLogInFieldsDefault 
                | PFLogInFieldsFacebookButton | PFLogInFieldsTwitterButton;
[self presentModalViewController:logInController animated:YES];


Now you are getting a login view controller that works with Facebook and Twitter. It looks great, and it works on the iPhone, iPad, portrait and landscape.

The following tutorial takes a more in-depth look at the new class:








Read more in our iOS guide. As always, any feedback is welcome at feedback@parse.com.

6 comments:

  1. Gexton are the best Mobile App Development Company in Hyderabad.
    For Further Detail: www.gexton.com





    ReplyDelete
  2. I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information.
    android

    ReplyDelete


  3. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from ES6 Training in Chennai . or learn thru ES6 Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry. ES6 Online Training from India

    ReplyDelete
  4. This is actually the kind of information I have been trying to find. Thank you for writing this information.
    chatlasapp

    ReplyDelete
  5. The intensity of articles can with out issues be felt of this weblog. Very specific and without delay to the mark. I understood with out difficulty the problem of fact which the author of this weblog wanted to deliver thru his mind. looking for more. Developers in California

    ReplyDelete
  6. What's best about Youteam? How to Find Software Developers? Youteam it's great for finding specialized developers who are actively searching for new opportunities, have relevant experience (as most candidates on Hired have at least two years of experience), and are in your area.

    ReplyDelete