in Objective-C:
@interface CustomDataSource : NSObject <UITableViewDataSource>
@end
in Swift:
class CustomDataSource : UITableViewDataSource {
}
However, an error message will appear:
- Type 'CellDatasDataSource' does not conform to protocol 'NSObjectProtocol'
- Type 'CellDatasDataSource' does not conform to protocol 'UITableViewDataSource'
What should be the correct way ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…