Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @interface XYZPieChartView : UIView
- @property (weak) id <XYZPieChartViewDataSource> dataSource;
- ...
- @end
- NSString *thisSegmentTitle;
- if ([self.dataSource respondsToSelector:@selector(titleForSegmentAtIndex:)]) {
- thisSegmentTitle = [self.dataSource titleForSegmentAtIndex:index];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement