I'm using StoryBoard, and I have UITabBarController and an UITabBarItem (User Profile). When I click on UITabBarItem (User Profile), I want to check if the user is connected or not before the view is shown. I have two ViewContollers, one for sign in (SignInVC), and the other one to show the user informations (UserProfileVC).
What I want is this: if the user is connected, show the UserProfileVC; otherwise show the SignInVC.
How can i implement this?