在Objective-C ++类中实现Objective-C协议

时间:2015-07-14 02:22:23

标签: c++ objective-c protocols

说我有Objective-C协议:

@protocol XYZPieChartViewDataSource
    - (NSUInteger)numberOfSegments;
    - (CGFloat)sizeOfSegmentAtIndex:(NSUInteger)segmentIndex;
    - (NSString *)titleForSegmentAtIndex:(NSUInteger)segmentIndex;
@end

我如何在Objective-C ++类(.mm)中实现它?

0 个答案:

没有答案