判断isShow()之后,获取ui 还是会空指针
Closed this issue · 2 comments
chengfan2017 commented
判断isShow()之后,获取ui 还是会空指针
junixapp commented
在onCreated回调里面才行,就像activity一样,onCreate执行了,UI才全部加载完毕
chengfan2017 commented
我有时候需要在oncreate setData,有时候需要在其他地方调用setData,如果不能通过isShow()判断,那怎么做