{"action":"opened","issue":{"url":"https://api.github.com/repos/wangmchn/WMPageController/issues/108","repository_url":"https://api.github.com/repos/wangmchn/WMPageController","labels_url":"https://api.github.com/repos/wangmchn/WMPageController/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/wangmchn/WMPageController/issues/108/comments","events_url":"https://api.github.com/repos/wangmchn/WMPageController/issues/108/events","html_url":"https://github.com/wangmchn/WMPageController/issues/108","id":157491517,"number":108,"title":"发现这个代码容易奔溃    [self.view layoutIfNeeded];","user":{"login":"542604974","id":15099430,"avatar_url":"https://avatars.githubusercontent.com/u/15099430?v=3","gravatar_id":"","url":"https://api.github.com/users/542604974","html_url":"https://github.com/542604974","followers_url":"https://api.github.com/users/542604974/followers","following_url":"https://api.github.com/users/542604974/following{/other_user}","gists_url":"https://api.github.com/users/542604974/gists{/gist_id}","starred_url":"https://api.github.com/users/542604974/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/542604974/subscriptions","organizations_url":"https://api.github.com/users/542604974/orgs","repos_url":"https://api.github.com/users/542604974/repos","events_url":"https://api.github.com/users/542604974/events{/privacy}","received_events_url":"https://api.github.com/users/542604974/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-30T12:15:12Z","updated_at":"2016-05-30T12:15:12Z","closed_at":null,"body":"- (void)viewDidLayoutSubviews {\r\n    [super viewDidLayoutSubviews];\r\n    \r\n    if (!self.childControllersCount) return;\r\n    \r\n    CGFloat oldSuperviewHeight = _superviewHeight;\r\n    _superviewHeight = self.view.frame.size.height;\r\n\r\n    if ((_hasInited && _superviewHeight == oldSuperviewHeight) || !self.view.superview) return;\r\n\r\n    // 计算宽高及子控制器的视图frame\r\n    [self calculateSize];\r\n    \r\n    [self adjustScrollViewFrame];\r\n    \r\n    [self adjustMenuViewFrame];\r\n    \r\n    [self adjustDisplayingViewControllersFrame];\r\n    \r\n    [self removeSuperfluousViewControllersIfNeeded];\r\n\r\n    _hasInited = YES;\r\n    [self.view layoutIfNeeded];\r\n}"}}
{"actor":{"display_login":"542604974"}}