草庐IT

XYZPieChartViewDataSource

全部标签

ios - 符合协议(protocol)的 id 与使用协议(protocol)限定 id

我正在浏览ProgrammingwithObjective-CApple提供的文档。我正在尝试理解以下段落,但到目前为止,无法理解。@protocolXYZPieChartViewDataSource-(NSUInteger)numberOfSegments;-(CGFloat)sizeOfSegmentAtIndex:(NSUInteger)segmentIndex;@optional-(NSString*)titleForSegmentAtIndex:(NSUInteger)segmentIndex;@required-(UIColor*)colorForSegmentAtInde