{"action":"opened","issue":{"url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/652","repository_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController","labels_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/652/comments","events_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/652/events","html_url":"https://github.com/John-Lluch/SWRevealViewController/issues/652","id":193650703,"number":652,"title":"Infinite loop initializing menu","user":{"login":"rferbesa","id":4902851,"avatar_url":"https://avatars.githubusercontent.com/u/4902851?v=3","gravatar_id":"","url":"https://api.github.com/users/rferbesa","html_url":"https://github.com/rferbesa","followers_url":"https://api.github.com/users/rferbesa/followers","following_url":"https://api.github.com/users/rferbesa/following{/other_user}","gists_url":"https://api.github.com/users/rferbesa/gists{/gist_id}","starred_url":"https://api.github.com/users/rferbesa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rferbesa/subscriptions","organizations_url":"https://api.github.com/users/rferbesa/orgs","repos_url":"https://api.github.com/users/rferbesa/repos","events_url":"https://api.github.com/users/rferbesa/events{/privacy}","received_events_url":"https://api.github.com/users/rferbesa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-06T00:29:50Z","updated_at":"2016-12-06T00:29:50Z","closed_at":null,"body":"Hi!\r\n\r\nI've been using this library for a long time without problems, I really like it!\r\nThis time I've had to add it to a project so this is what I've done:\r\n- I've taken the \"RevealControllerProject\" sample.\r\n- I've copied directly SWRevealViewController to my project\r\n- I've copied directly FrontViewController to my project\r\n- I've copied directly RearViewController to my project but I removed all code inside didSelectRowAtIndexPath\r\n- I've added to my AppDelegate all the initialization code except the RightView because I don't need it:\r\n```\r\n\r\nFrontViewController *frontViewController = [[FrontViewController alloc] init];\r\n    RearViewController *rearViewController = [[RearViewController alloc] init];\r\n    \r\n    UINavigationController *frontNavigationController = [[UINavigationController alloc] initWithRootViewController:frontViewController];\r\n    UINavigationController *rearNavigationController = [[UINavigationController alloc] initWithRootViewController:rearViewController];\r\n    \r\n    SWRevealViewController *revealController = [[SWRevealViewController alloc] initWithRearViewController:rearNavigationController frontViewController:frontNavigationController];\r\n    revealController.delegate = self;\r\n    \r\n    \r\n    self.swViewController = revealController;\r\n    \r\n    self.window.rootViewController = self.swViewController;\r\n    [self.window makeKeyAndVisible];\r\n    return YES;\r\n```\r\nAnd when I launch the app this crashes because and infinite loop. This is the call stack:\r\n\r\n...(here comes inifite calls to transitionFromViewController)...\r\n#36603\t0x00118620 in __80-[SWRevealViewController _transitionFromViewController:toViewController:inView:]_block_invoke_2 at /path/to/myproject/SWRevealViewController.m:1683\r\n#36604\t0x00118620 in __80-[SWRevealViewController _transitionFromViewController:toViewController:inView:]_block_invoke_2 at /path/to/myproject/SWRevealViewController.m:1683\r\n#36605\t0x00118620 in __80-[SWRevealViewController _transitionFromViewController:toViewController:inView:]_block_invoke_2 at /path/to/myproject/SWRevealViewController.m:1683\r\n#36606\t0x00118620 in __80-[SWRevealViewController _transitionFromViewController:toViewController:inView:]_block_invoke_2 at /path/to/myproject/SWRevealViewController.m:1683\r\n#36607\t0x00118620 in __80-[SWRevealViewController _transitionFromViewController:toViewController:inView:]_block_invoke_2 at /path/to/myproject/SWRevealViewController.m:1683\r\n#36608\t0x00118620 in __80-[SWRevealViewController _transitionFromViewController:toViewController:inView:]_block_invoke_2 at /path/to/myproject/SWRevealViewController.m:1683\r\n#36609\t0x00118620 in __80-[SWRevealViewController _transitionFromViewController:toViewController:inView:]_block_invoke_2 at /path/to/myproject/SWRevealViewController.m:1683\r\n#36610\t0x00118620 in __80-[SWRevealViewController _transitionFromViewController:toViewController:inView:]_block_invoke_2 at /path/to/myproject/SWRevealViewController.m:1683\r\n#36611\t0x00118620 in __80-[SWRevealViewController _transitionFromViewController:toViewController:inView:]_block_invoke_2 at /path/to/myproject/SWRevealViewController.m:1683\r\n#36612\t0x00118620 in __80-[SWRevealViewController _transitionFromViewController:toViewController:inView:]_block_invoke_2 at /path/to/myproject/SWRevealViewController.m:1683\r\n#36613\t0x00118620 in __80-[SWRevealViewController _transitionFromViewController:toViewController:inView:]_block_invoke_2 at /path/to/myproject/SWRevealViewController.m:1683\r\n#36614\t0x0011759c in __82-[SWRevealViewController _performTransitionOperation:withViewController:animated:]_block_invoke at /path/to/myproject/SWRevealViewController.m:1470\r\n#36615\t0x0011757e in -[SWRevealViewController _performTransitionOperation:withViewController:animated:] at /path/to/myproject/SWRevealViewController.m:1497\r\n#36616\t0x001137be in -[SWRevealViewController initWithRearViewController:frontViewController:] at /path/to/myproject/SWRevealViewController.m:635\r\n#36617\t0x000e1ec0 in -[AppDelegate application:didFinishLaunchingWithOptions:] at /path/to/myproject/AppDelegate.m:35\r\n\r\nI've tested the sample directly and of course it works.\r\nI'm using XCode 8 and I'm compiling with iOS 10.1.\r\nThe only \"different\" thing I'm doing is that my app is landscape only, and I don't know if this affects the side menu.\r\n\r\nWhat could it be happening??\r\n\r\n"}}
{"actor":{"display_login":"rferbesa"}}