To use TKTabView first an instance needs to be created. The TKTabView class can be used after the TKTabView.h header is imported or
Telerik UI framework.
TKTabView *tabView = [TKTabView new];
Then we add some tabs:
[tabView addTabWithTitle:@"Tab 1"];
[tabView addTabWithTitle:@"Tab 2"];
[tabView addTabWithTitle:@"Tab 3"];
Povide content views for the tabs:
- (UIView *) contentViewForTab: (TKTab *) tab {
UILabel *label = [UILabel new];
label.textColor = [UIColor blackColor];
label.textAlignment = NSTextAlignmentCenter;
label.text = [NSString stringWithFormat:@"Content view for %@.", tab.title];
return label;
}
And we have a fully functioning tab view: