UICollectionViewDataSourcePrefetching
プロトコルの新しいcollectionView:prefetchItemsAt
とcollectionView:cancelPrefetchingForItemsAt
メソッドを試していますが、どちらも呼び出されていません。デリゲートはインターフェイスビルダ(同じ結果のコードから試しました)を介して設定され、展開ターゲットはiOS 10に設定されているため、理論的にはうまくいくはずです。だから私の質問は、私はそれを動作させるために何かを逃しているか、あるいはメカニズムが思ったより洗練されていて、システムが先読みをすべきだと感じていないということですか?iOS 10 collectionView:prefetchItemsAt not called
0
A
答えて
1
クラスのViewControllerなどのプロトコル"UICollectionViewDataSourcePrefetchingに" あなたのViewControllerでを実装しますのUIViewController、UICollectionViewDataSourcePrefetchingストーリーボードでのあなたのコレクションビューにデリゲートを以下の{
セット(添付画像参照) またはプログラム
ViewController'sのviewDidLoad方法
collectionView.delegate =自己
collectionView.dataSource =自己
collectionView.prefetchDataSourceは
この例を参照してください自己= - https://github.com/Be-With-Viresh/CollectionViewWithPrefetch
関連する問題
- 1. ViewModel Dispose not called
- 2. OnTurnBasedMatchReceived Not Called
- 3. tableView(:cellForRowAtIndexPath :) Not Called
- 4. uploadify onError not called
- 5. CLLocation Manager Delegates Not Called?
- 6. Okio明示的終了方法close not called
- 7. Windows 10 Slite Not working
- 8. outlineView:objectValueForTableColumn:byItem:not called
- 9. value.length <10 return false not working
- 10. IOSのビーコンクラッシュ10
- 11. surfaceCreated()Never Called
- 12. onPageFinished()never called(webview)!
- 13. Request_Begin never called
- 14. Servlet Called Twice
- 15. when -tableView:cellForRowAtIndexPath:get called?
- 16. Sinch didReceiveIncomingCall Never Called
- 17. iOS on resume not working
- 18. Cordova iOS window.location not working
- 19. IOS UINavigationController、pushViewController not working
- 20. サブクラスURLSession iOSの10
- 21. Swift 3 IOS 9およびIOS 10コアデータ
- 22. iOS 10のUIPikerViewController
- 23. HLS && .m3u8in iOS 10
- 24. iOS 10 Todayウィジェットボタン
- 25. Unity iOS 10エラー
- 26. IOS 10マルチペーター
- 27. iOS 10のCMPedometer
- 28. iOS 10のアニメーションバグ
- 29. カラバッシュとiOS 10
- 30. UserNotification ios 10
は ' UICollectionView'プロパティは ' prefetchingEnabled'は 'YES'に設定されていますか? Xcode 8.0 beta 4でこのケースを試したところ、期待通りに動作します。 –
@RomanErmolovはい、それは 'true'に設定されましたが、効果はありません。ちょうど参考のために、私はSwift –
を理論的に使用していました。言語はまったく重要ではありません。私はあなたが目に見えない細胞を持っていないと推測することができます - すべての細胞がスクリーン上にある場合、このメソッドは呼ばれません。 –