I am trying to learn objective c xcode programming and I have a small project to do. First of all, I am trying to do a simple login page, where user enters username and password. username and password are hardcoded in the program. so there is not much logic. but my problem is, how do you forward the screen if the login is correct?
here is my code,
- (IBAction)btn_login_submit:(id)sender {
if([_txt_username.text isEqual:@"rotanet"] && [_txt_username.text isEqual:@"rotanet"]){
_lbl_result.text = @"correct";
}
else{
_lbl_result.text = @"incorrect";
}
}
I am using storyboard, and now I have only one view controller. Should I add another view controller or something else? and how do I forward to the next page from login?
thanks