Adapter
-
Represents an adapter that holds data to be rendered.
See moreDeclaration
Swift
public protocol Adapter : AnyObject
-
An adapter for
UITableView
. It can be inherited to implement customized behavior or give some unimplemented methods of delegate or dataSource.Attention : In UIKit, if inheriting the @objc class which using generics, the delegate and dataSource are don’t work properly, so this class doesn’t use generics, and also the class inherited this class shouldn’t use generics.
See moreDeclaration
Swift
open class UITableViewAdapter : NSObject, Adapter
-
An adapter for
UICollectionView
. It can be inherited to implement customized behavior or give some unimplemented methods of delegate or dataSource.Attention : In UIKit, if inheriting the @objc class which using generics, the delegate and dataSource are don’t work properly, so this class doesn’t use generics, and also the class inherited this class shouldn’t use generics.
See moreDeclaration
Swift
open class UICollectionViewAdapter : NSObject, Adapter
-
An adapter for
See moreUICollectionView
withUICollectionViewFlowLayout
inherited fromUICollectionViewAdapter
.Declaration
Swift
open class UICollectionViewFlowLayoutAdapter : UICollectionViewAdapter