Release a Login Screen

I have just started getting into coding and have found Parse, which helps you code in a login screen and uses their web databases to store info. I have gotten the login to pop up and is working, but after it accepts my authentication I cannot get it to release the view control screen. Can anybody take a look and see where I'm going wrong?

#import <UIKit/UIKit.h>
#import <Parse/Parse.h>

@interface ViewController : UIViewController <PFLogInViewControllerDelegate>{

}

@end

@implementation ViewController


- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];

    PFLogInViewController *login = [[PFLogInViewController alloc] init];
    login.fields = PFLogInFieldsUsernameAndPassword | PFLogInFieldsLogInButton;
    login.delegate = self;
    [self presentViewController:login animated:YES completion:nil];
}
- (void)logInViewController:(PFLogInViewController *)logInController didLogInUser:(PFUser *)user {
    [self dismissViewControllerAnimated:YES completion:NULL];
}

- (void)logInViewControllerDidCancelLogIn:(PFLogInViewController *)logInController {
    [self dismissViewControllerAnimated:YES completion:NULL];
}


// Do any additional setup after loading the view, typically from a nib.


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end

Answers


Need Your Help

List View Row Index and Validation

wpf validation listview binding

I have a ListView with TextBoxes in second column. I want to validate that my text box does not contain a number if the third column(`data_type) is "Text".

Replace string from findstr command output

windows string replace cmd

I successfully managed to seek strings in a long list of files with findstr. I'm redirecting findstr's output to different text files, however I need to get rid of the starting part of the output l...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.