{"action":"created","issue":{"url":"https://api.github.com/repos/bang590/JSPatch/issues/337","repository_url":"https://api.github.com/repos/bang590/JSPatch","labels_url":"https://api.github.com/repos/bang590/JSPatch/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/bang590/JSPatch/issues/337/comments","events_url":"https://api.github.com/repos/bang590/JSPatch/issues/337/events","html_url":"https://github.com/bang590/JSPatch/issues/337","id":151305838,"number":337,"title":"设置setLeftBarButtonItem 咋写？","user":{"login":"xieshizhong","id":11648205,"avatar_url":"https://avatars.githubusercontent.com/u/11648205?v=3","gravatar_id":"","url":"https://api.github.com/users/xieshizhong","html_url":"https://github.com/xieshizhong","followers_url":"https://api.github.com/users/xieshizhong/followers","following_url":"https://api.github.com/users/xieshizhong/following{/other_user}","gists_url":"https://api.github.com/users/xieshizhong/gists{/gist_id}","starred_url":"https://api.github.com/users/xieshizhong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xieshizhong/subscriptions","organizations_url":"https://api.github.com/users/xieshizhong/orgs","repos_url":"https://api.github.com/users/xieshizhong/repos","events_url":"https://api.github.com/users/xieshizhong/events{/privacy}","received_events_url":"https://api.github.com/users/xieshizhong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-27T06:01:43Z","updated_at":"2016-04-27T08:42:51Z","closed_at":"2016-04-27T08:42:51Z","body":"            var leftbar=require('UIBarButtonItem').alloc().initWithTitle_style_target_action(\"举报\",0,self,\"leftAction\");\r\n            console.log(leftbar);\r\n            self.navigationItem.setLeftBarButtonItem(leftbar);\r\n\r\n我这样写的，好像无效，我打印了leftbar 不为空"},"comment":{"url":"https://api.github.com/repos/bang590/JSPatch/issues/comments/215013202","html_url":"https://github.com/bang590/JSPatch/issues/337#issuecomment-215013202","issue_url":"https://api.github.com/repos/bang590/JSPatch/issues/337","id":215013202,"user":{"login":"bang590","id":329480,"avatar_url":"https://avatars.githubusercontent.com/u/329480?v=3","gravatar_id":"","url":"https://api.github.com/users/bang590","html_url":"https://github.com/bang590","followers_url":"https://api.github.com/users/bang590/followers","following_url":"https://api.github.com/users/bang590/following{/other_user}","gists_url":"https://api.github.com/users/bang590/gists{/gist_id}","starred_url":"https://api.github.com/users/bang590/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bang590/subscriptions","organizations_url":"https://api.github.com/users/bang590/orgs","repos_url":"https://api.github.com/users/bang590/repos","events_url":"https://api.github.com/users/bang590/events{/privacy}","received_events_url":"https://api.github.com/users/bang590/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T08:42:51Z","updated_at":"2016-04-27T08:42:51Z","body":"self.navigationItem().setLeftBarButtonItem(leftbar);"}}