{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/weex/issues/1287","repository_url":"https://api.github.com/repos/alibaba/weex","labels_url":"https://api.github.com/repos/alibaba/weex/issues/1287/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/weex/issues/1287/comments","events_url":"https://api.github.com/repos/alibaba/weex/issues/1287/events","html_url":"https://github.com/alibaba/weex/issues/1287","id":178551605,"number":1287,"title":"ios 如何获取渲染view的大小？","user":{"login":"LWnoheart","id":2731739,"avatar_url":"https://avatars.githubusercontent.com/u/2731739?v=3","gravatar_id":"","url":"https://api.github.com/users/LWnoheart","html_url":"https://github.com/LWnoheart","followers_url":"https://api.github.com/users/LWnoheart/followers","following_url":"https://api.github.com/users/LWnoheart/following{/other_user}","gists_url":"https://api.github.com/users/LWnoheart/gists{/gist_id}","starred_url":"https://api.github.com/users/LWnoheart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LWnoheart/subscriptions","organizations_url":"https://api.github.com/users/LWnoheart/orgs","repos_url":"https://api.github.com/users/LWnoheart/repos","events_url":"https://api.github.com/users/LWnoheart/events{/privacy}","received_events_url":"https://api.github.com/users/LWnoheart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-22T08:35:47Z","updated_at":"2016-09-26T06:46:13Z","closed_at":null,"body":"我初始化WXSDKInstance对象，并赋值了四个block：onCreate、onFailed、renderFinish、onRenderProgress。然后用renderWithURL来渲染view。但是我没有办法通过这四个block得到渲染view的大小。而且现在我也不知道通过何种方式来限制渲染大小，设置WXSDKInstance的viewController或frame都没达到想要的效果。请问我该怎么获得和限制渲染大小呢？"},"comment":{"url":"https://api.github.com/repos/alibaba/weex/issues/comments/249491536","html_url":"https://github.com/alibaba/weex/issues/1287#issuecomment-249491536","issue_url":"https://api.github.com/repos/alibaba/weex/issues/1287","id":249491536,"user":{"login":"LWnoheart","id":2731739,"avatar_url":"https://avatars.githubusercontent.com/u/2731739?v=3","gravatar_id":"","url":"https://api.github.com/users/LWnoheart","html_url":"https://github.com/LWnoheart","followers_url":"https://api.github.com/users/LWnoheart/followers","following_url":"https://api.github.com/users/LWnoheart/following{/other_user}","gists_url":"https://api.github.com/users/LWnoheart/gists{/gist_id}","starred_url":"https://api.github.com/users/LWnoheart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LWnoheart/subscriptions","organizations_url":"https://api.github.com/users/LWnoheart/orgs","repos_url":"https://api.github.com/users/LWnoheart/repos","events_url":"https://api.github.com/users/LWnoheart/events{/privacy}","received_events_url":"https://api.github.com/users/LWnoheart/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T06:46:13Z","updated_at":"2016-09-26T06:46:13Z","body":"经测试当展示后加个button人为手动触发打印WXSDKInstance的rootView的frame为正确的，但是在WXSDKInstance对象的所有回调中都不正确。而且WXSDKInstance对象的state永远是0，frame永远是{{0, 0}, {0, 0}}？那我应该在什么回调中第一时间知道渲染view的大小呢？"}}
{"actor":{"display_login":"LWnoheart"}}