/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
iOS/RobloxUI/Source/Components/RBInfiniteCollectionView.h
43 строки
1 KB
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
// // RBInfiniteCollectionView.h // RobloxMobile // // Created by Ariel Lichtin on 10/14/14. // Copyright (c) 2014 ROBLOX. All rights reserved. // #import <UIKit/UIKit.h> // Forward declarations @class RBInfiniteCollectionView; // Infinite scroll view delagate @protocol RBInfiniteCollectionViewDelegate <UICollectionViewDelegate> @required // - (void) asyncRequestItemsForCollectionView:(RBInfiniteCollectionView*)collectionView numItemsToRequest:(NSUInteger)itemsToRequest completionHandler:(void(^)())completionHandler; - (NSUInteger)numItemsInInfiniteCollectionView:(RBInfiniteCollectionView*)collectionView; - (UICollectionViewCell*) infiniteCollectionView:(RBInfiniteCollectionView*)collectionView cellForItemAtIndexPath:(NSIndexPath*)indexPath; @optional - (void) infiniteCollectionView:(RBInfiniteCollectionView*)collectionView didSelectItemAtIndexPath:(NSIndexPath*)indexPath; @end // Infinite Collection View @interface RBInfiniteCollectionView : UICollectionView // Retrieves the total number of items in the collection view (real cells + placeholders) @property(nonatomic, readonly) NSUInteger numItems; // Delegate @property(weak, nonatomic) id<RBInfiniteCollectionViewDelegate> infiniteDelegate; // Start - (void) loadElementsAsync; @end