Skip to content

Latest commit

 

History

History
26 lines (12 loc) · 830 Bytes

File metadata and controls

26 lines (12 loc) · 830 Bytes

KNSegmentedViewControllers:

A custom PageViewController for iOS with the tab bar control at the top

Example diagram

image

NSArray *tmp_itemArray = @[@"step1\n基本信息",@"step2\n信息",@"step3\n信息",@"step4\n照片"];

CGFloat leftEdg = 15;

CGFloat  tmptopButtonWidth = ([[UIScreen mainScreen] bounds].size.width-leftEdg*2)/tmp_itemArray.count;

CGFloat height = tmptopButtonWidth*(79/168.0);// 168/79 = w/h

TopButtonView  *tmp = [[TopButtonView alloc] initWithFrame:CGRectMake(leftEdg, leftEdg, [[UIScreen mainScreen] bounds].size.width-leftEdg*2, height) withTitleArray:tmp_itemArray];