Samantha Thompson

Results 2 comments of Samantha Thompson

因为最后面的View 是CollectionView,其中childController的时机是在cellForItemAtIndexPath方法的,当划到1时,indexPath.row=2 已经调用了cellForItemAtIndexPath方法,如果要是放到willDisplayCell中的话,过快的滑动会导致页面加载不出来,我一般复杂的初始化的任务不放在willDisplay方法里,或者viewWillAppear中。