Hello there.
I am very new to apple/mac.
I am designing a simple app, where I check the username and password and if that matches, it would open a new page. It is probably very simple. Its just that I am new to this. So I don't know.
Everything works fine except that I cannot put a condition in the custom segue which checks if username and password are correct or not, before loading the next page.
How can I do that?
This is my custom segue: (I need to add a condition where I can check if username and password in the source view controller are correct or not before loading destination view controller.
I am attaching my entire project in zip file. Here.
Thanks
Shahab
I am very new to apple/mac.
I am designing a simple app, where I check the username and password and if that matches, it would open a new page. It is probably very simple. Its just that I am new to this. So I don't know.
Everything works fine except that I cannot put a condition in the custom segue which checks if username and password are correct or not, before loading the next page.
How can I do that?
This is my custom segue: (I need to add a condition where I can check if username and password in the source view controller are correct or not before loading destination view controller.
I am attaching my entire project in zip file. Here.
Thanks
Shahab
Code:
#import "Akire_login_customsegue.h"
@implementation Akire_login_customsegue
-(void)perform
{
[self.sourceViewController presentModalViewController:self.destinationViewController animated:YES];
}
@end
Attachments
Last edited by a moderator: