{"action":"created","issue":{"url":"https://api.github.com/repos/evnaz/ENSwiftSideMenu/issues/69","labels_url":"https://api.github.com/repos/evnaz/ENSwiftSideMenu/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/evnaz/ENSwiftSideMenu/issues/69/comments","events_url":"https://api.github.com/repos/evnaz/ENSwiftSideMenu/issues/69/events","html_url":"https://github.com/evnaz/ENSwiftSideMenu/issues/69","id":81327997,"number":69,"title":"Is there a built-in way to programatically switch between menu items?","user":{"login":"albertkim","id":5528625,"avatar_url":"https://avatars.githubusercontent.com/u/5528625?v=3","gravatar_id":"","url":"https://api.github.com/users/albertkim","html_url":"https://github.com/albertkim","followers_url":"https://api.github.com/users/albertkim/followers","following_url":"https://api.github.com/users/albertkim/following{/other_user}","gists_url":"https://api.github.com/users/albertkim/gists{/gist_id}","starred_url":"https://api.github.com/users/albertkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertkim/subscriptions","organizations_url":"https://api.github.com/users/albertkim/orgs","repos_url":"https://api.github.com/users/albertkim/repos","events_url":"https://api.github.com/users/albertkim/events{/privacy}","received_events_url":"https://api.github.com/users/albertkim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-27T07:39:16Z","updated_at":"2015-07-03T17:13:46Z","closed_at":"2015-07-03T16:50:29Z","body":"For example, if a user goes to a menu item, and the app determines that the user has not logged in, then it should redirect to the login tab.\r\n\r\nThe only way I know to do this is by using self.sideMenuController()?.setContentViewController, but that doesn't change the selected menu index. I'm wondering if there's some handy method around that i missed."},"comment":{"url":"https://api.github.com/repos/evnaz/ENSwiftSideMenu/issues/comments/118393925","html_url":"https://github.com/evnaz/ENSwiftSideMenu/issues/69#issuecomment-118393925","issue_url":"https://api.github.com/repos/evnaz/ENSwiftSideMenu/issues/69","id":118393925,"user":{"login":"ejpusa","id":1279819,"avatar_url":"https://avatars.githubusercontent.com/u/1279819?v=3","gravatar_id":"","url":"https://api.github.com/users/ejpusa","html_url":"https://github.com/ejpusa","followers_url":"https://api.github.com/users/ejpusa/followers","following_url":"https://api.github.com/users/ejpusa/following{/other_user}","gists_url":"https://api.github.com/users/ejpusa/gists{/gist_id}","starred_url":"https://api.github.com/users/ejpusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejpusa/subscriptions","organizations_url":"https://api.github.com/users/ejpusa/orgs","repos_url":"https://api.github.com/users/ejpusa/repos","events_url":"https://api.github.com/users/ejpusa/events{/privacy}","received_events_url":"https://api.github.com/users/ejpusa/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T17:13:46Z","updated_at":"2015-07-03T17:13:46Z","body":"I do something like this with Instagram and OAuthSwift. \r\n\r\nIf you are not logged into the 'Gram, you can a login screen by way of OAuth2, then the main sidebar appears if u login. I allow users to skip the login, but do bug them each time they re/start the App. IG just throttles u down to 5,000 requests per hour. So you want all your users to have their own AccessToken.\r\n\r\nOAuthSwift things here: (this is a popular one, there others, and it is a bit tricky to get it all to work)\r\nhttps://github.com/dongri/OAuthSwift"}}