{"action":"created","issue":{"url":"https://api.github.com/repos/DianQK/TransitionTreasury/issues/3","labels_url":"https://api.github.com/repos/DianQK/TransitionTreasury/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/DianQK/TransitionTreasury/issues/3/comments","events_url":"https://api.github.com/repos/DianQK/TransitionTreasury/issues/3/events","html_url":"https://github.com/DianQK/TransitionTreasury/issues/3","id":126100821,"number":3,"title":"Let the code runs in main thread when a cell is selected in demo code.","user":{"login":"leizh007","id":7850978,"avatar_url":"https://avatars.githubusercontent.com/u/7850978?v=3","gravatar_id":"","url":"https://api.github.com/users/leizh007","html_url":"https://github.com/leizh007","followers_url":"https://api.github.com/users/leizh007/followers","following_url":"https://api.github.com/users/leizh007/following{/other_user}","gists_url":"https://api.github.com/users/leizh007/gists{/gist_id}","starred_url":"https://api.github.com/users/leizh007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leizh007/subscriptions","organizations_url":"https://api.github.com/users/leizh007/orgs","repos_url":"https://api.github.com/users/leizh007/repos","events_url":"https://api.github.com/users/leizh007/events{/privacy}","received_events_url":"https://api.github.com/users/leizh007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-12T05:17:58Z","updated_at":"2016-01-12T05:24:38Z","closed_at":null,"body":"In Demo MainViewController.swift, the code should be wrapped in dispatch_async(dispatch_get_main_queue()) {...} , otherwise it will delay some seconds when response the user tapped event. I don't know why, but run in main thread can solve the delay problem. Something like that:\r\n`// MARK: - Table view delegate\r\n    \r\n    func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {\r\n        tableView.deselectRowAtIndexPath(indexPath, animated: true)\r\n        guard let cell = tableView.cellForRowAtIndexPath(indexPath) else { return }\r\n        dispatch_async(dispatch_get_main_queue()) { () -> Void in\r\n            //custome code here\r\n        }\r\n    }\r\n`"},"comment":{"url":"https://api.github.com/repos/DianQK/TransitionTreasury/issues/comments/170798583","html_url":"https://github.com/DianQK/TransitionTreasury/issues/3#issuecomment-170798583","issue_url":"https://api.github.com/repos/DianQK/TransitionTreasury/issues/3","id":170798583,"user":{"login":"DianQK","id":10829914,"avatar_url":"https://avatars.githubusercontent.com/u/10829914?v=3","gravatar_id":"","url":"https://api.github.com/users/DianQK","html_url":"https://github.com/DianQK","followers_url":"https://api.github.com/users/DianQK/followers","following_url":"https://api.github.com/users/DianQK/following{/other_user}","gists_url":"https://api.github.com/users/DianQK/gists{/gist_id}","starred_url":"https://api.github.com/users/DianQK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DianQK/subscriptions","organizations_url":"https://api.github.com/users/DianQK/orgs","repos_url":"https://api.github.com/users/DianQK/repos","events_url":"https://api.github.com/users/DianQK/events{/privacy}","received_events_url":"https://api.github.com/users/DianQK/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T05:24:38Z","updated_at":"2016-01-12T05:24:38Z","body":"About **Twitter** , You can try set `navigationController?.navigationBarHidden = false`, then everything will be well. I am not sure what happened(maybe due to AutoLayout?)   \r\n\r\n在 **Twitter** 的这个效果中，会出现移位的情况，我也很好奇为什么会这样，你可以试试设置`navigationController?.navigationBarHidden = false`，这样的时候效果就会没问题了，可能是由于状态栏或者 AutoLayout "}}