{"action":"opened","issue":{"url":"https://api.github.com/repos/pozi119/VOVCManager/issues/1","labels_url":"https://api.github.com/repos/pozi119/VOVCManager/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/pozi119/VOVCManager/issues/1/comments","events_url":"https://api.github.com/repos/pozi119/VOVCManager/issues/1/events","html_url":"https://github.com/pozi119/VOVCManager/issues/1","id":98357531,"number":1,"title":"无法删除页面：- (void)pushController:(NSString *)aController storyboard:(NSString *)aStoryboard params:(NSDictionary *)aParams animated:(BOOL)animated removeControllers:(NSArray *)removeControllers;","user":{"login":"grittymindy","id":11732306,"avatar_url":"https://avatars.githubusercontent.com/u/11732306?v=3","gravatar_id":"","url":"https://api.github.com/users/grittymindy","html_url":"https://github.com/grittymindy","followers_url":"https://api.github.com/users/grittymindy/followers","following_url":"https://api.github.com/users/grittymindy/following{/other_user}","gists_url":"https://api.github.com/users/grittymindy/gists{/gist_id}","starred_url":"https://api.github.com/users/grittymindy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grittymindy/subscriptions","organizations_url":"https://api.github.com/users/grittymindy/orgs","repos_url":"https://api.github.com/users/grittymindy/repos","events_url":"https://api.github.com/users/grittymindy/events{/privacy}","received_events_url":"https://api.github.com/users/grittymindy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-31T09:59:56Z","updated_at":"2015-07-31T09:59:56Z","closed_at":null,"body":"<pre>\r\n- (void)pushController:(NSString *)aController storyboard:(NSString *)aStoryboard params:(NSDictionary *)aParams animated:(BOOL)animated removeControllers:(NSArray *)removeControllers{\r\n    [self pushController:aController storyboard:aStoryboard params:aParams animated:animated];\r\n    if(removeControllers == nil || self.currentNaviController == nil){\r\n        return;\r\n    }\r\n    NSMutableArray *willRemoveControllers = [NSMutableArray array];\r\n    NSMutableArray *tmpArray = [self.currentNaviController.viewControllers mutableCopy];\r\n    for (NSString *removeController in removeControllers) {\r\n        if (![removeController isEqualToString:aController]) {\r\n            for (UIViewController *viewController in tmpArray) {\r\n                if ([NSStringFromClass([viewController class]) isEqualToString:removeController]) {\r\n                    [willRemoveControllers addObject:viewController];\r\n                }\r\n            }\r\n        }\r\n    }\r\n    [tmpArray removeObjectsInArray:willRemoveControllers];\r\n}\r\n</pre>\r\n\r\nVOVCManager中这个方法应该是没办法真正把removeControllers从self.currentNaviController中删除的吧。所操作的tmpArray只是一个mutableCopy."}}