{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/5009","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/5009/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/5009/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/5009/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/5009","id":100719808,"number":5009,"title":"13862664: iOS SDK UIPopoverController with ARC pre-emptively deallocs.","user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/classification:crash","name":"classification:crash","color":"e11d21"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/reproducible:always","name":"reproducible:always","color":"5319e7"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:open","name":"status:open","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/4","html_url":"https://github.com/lionheart/openradar-mirror/milestones/iOS%20SDK","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/4/labels","id":1237418,"number":4,"title":"iOS SDK","description":null,"creator":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":946,"closed_issues":0,"state":"open","created_at":"2015-08-03T02:08:31Z","updated_at":"2015-08-13T09:02:23Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-08-13T09:02:23Z","updated_at":"2015-08-13T09:02:23Z","closed_at":null,"body":"#### Description\n\nSummary:\r\nWhen calling a UIPopoverController via a local variable in an ARC project, the controller has dealloc called on it while it is still active.\r\n\r\nSteps to Reproduce:\r\nCall a popover controller with the following code:\r\n\r\n    UIPopoverController *popover_ = [[UIPopoverController alloc] initWithContentViewController:controller];\r\n    [popover_ presentPopoverFromRect:scale_.frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES];\r\n    popover_.delegate = self;\r\n\r\n\r\nExpected Results:\r\nThe view presented via the popover controller does not cause the application to crash.\r\n\r\nActual Results:\r\nThe application crashes when dealloc is called on the popover controller.\r\n\r\nRegression:\r\nIf the popover is assigned to an instance variable, the dealloc method is not called. Unfortunately, if simply a quick popover is needed, one cannot be made without the instance variable. Also, if a project is not in ARC, the code works as well without the dealloc crash.\r\n\r\nNotes:\r\nNothing additional.\n\n-\nProduct Version: iOS 6.1\nCreated: 2013-05-10T19:41:32.566312\nOriginated: 2013-05-10T00:00:00\nOpen Radar Link: http://www.openradar.me/13862664"}}