{"action":"created","issue":{"url":"https://api.github.com/repos/ChenYilong/CYLTabBarController/issues/59","repository_url":"https://api.github.com/repos/ChenYilong/CYLTabBarController","labels_url":"https://api.github.com/repos/ChenYilong/CYLTabBarController/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/ChenYilong/CYLTabBarController/issues/59/comments","events_url":"https://api.github.com/repos/ChenYilong/CYLTabBarController/issues/59/events","html_url":"https://github.com/ChenYilong/CYLTabBarController/issues/59","id":163099538,"number":59,"title":"按照 “点击 PlusButton 跳转到指定 UIViewController” 添加控制器，不能实现描述的结果","user":{"login":"Guodadada","id":16527069,"avatar_url":"https://avatars.githubusercontent.com/u/16527069?v=3","gravatar_id":"","url":"https://api.github.com/users/Guodadada","html_url":"https://github.com/Guodadada","followers_url":"https://api.github.com/users/Guodadada/followers","following_url":"https://api.github.com/users/Guodadada/following{/other_user}","gists_url":"https://api.github.com/users/Guodadada/gists{/gist_id}","starred_url":"https://api.github.com/users/Guodadada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guodadada/subscriptions","organizations_url":"https://api.github.com/users/Guodadada/orgs","repos_url":"https://api.github.com/users/Guodadada/repos","events_url":"https://api.github.com/users/Guodadada/events{/privacy}","received_events_url":"https://api.github.com/users/Guodadada/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-30T07:32:22Z","updated_at":"2016-06-30T08:34:18Z","closed_at":null,"body":"操作流程重现：\r\n1. 前提：CYLTabBarControllers 中4个控制器，加上plusButton一共有5个。tabBarItemsAttributes中4个。\r\n2. 给plusButton 按照“点击 PlusButton 跳转到指定 UIViewController ”中的方法设置，会出现 tabBarItemsAttributes 数组越界。\r\n3. 解决：给 tabBarItemsAttributes 添加一个元素到5个元素。\r\n4. 运行会崩到“The count of CYLTabBarControllers is not equal to the count of tabBarItemsAttributes.”。\r\n\r\n看文档没有提到这种问题，尝试解决没有成功"},"comment":{"url":"https://api.github.com/repos/ChenYilong/CYLTabBarController/issues/comments/229596605","html_url":"https://github.com/ChenYilong/CYLTabBarController/issues/59#issuecomment-229596605","issue_url":"https://api.github.com/repos/ChenYilong/CYLTabBarController/issues/59","id":229596605,"user":{"login":"ChenYilong","id":2911921,"avatar_url":"https://avatars.githubusercontent.com/u/2911921?v=3","gravatar_id":"","url":"https://api.github.com/users/ChenYilong","html_url":"https://github.com/ChenYilong","followers_url":"https://api.github.com/users/ChenYilong/followers","following_url":"https://api.github.com/users/ChenYilong/following{/other_user}","gists_url":"https://api.github.com/users/ChenYilong/gists{/gist_id}","starred_url":"https://api.github.com/users/ChenYilong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChenYilong/subscriptions","organizations_url":"https://api.github.com/users/ChenYilong/orgs","repos_url":"https://api.github.com/users/ChenYilong/repos","events_url":"https://api.github.com/users/ChenYilong/events{/privacy}","received_events_url":"https://api.github.com/users/ChenYilong/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T08:34:18Z","updated_at":"2016-06-30T08:34:18Z","body":"如果你的 plusButton 是在放在tabBar的最后一个，那么实现代理时需要这样指定：\r\n\r\n ```Objective-C\r\n+ (NSUInteger)indexOfPlusButtonInTabBar {\r\n    return 4;\r\n}\r\n ```\r\n\r\n我试了这样没问题，不知道你的crash具体是怎么产生的？"}}
{"actor":{"display_login":"ChenYilong"}}