Newbie around here, apologies if a simple question - been searching and cannot find an answer!
I've created a simple project with a Navigation Controller and 2 View Controllers - one as Root.
On the main screen I have a username/password & login button - with a Segue from the Button to the 2nd View Controller. In the code behind I call the relevant web service to verify user, and if OK store the credentials in local SQL Lite DB and it loads the Content which is in the 2nd View Controller.
What I can't figure out is two things:
1: How to cancel the navigation if user enters incorrect user/password...
if (!valid)
//something in here to update error message label and cancel the navigation
2: How to automatically load Content View if user details already in the SQL Lite DB after 1st login
if (db.Table<Model.Member> ().Count() == 1)
//something in here to switch to 2nd View Controller
Any help greatly appreciated!