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];
-
Notifications
You must be signed in to change notification settings - Fork 0
One viewController can display multiple viewController. Example show works like Tabbar but you can set it anywhere on the screen.
zhangkn/KNSegmentedViewControllers
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
One viewController can display multiple viewController. Example show works like Tabbar but you can set it anywhere on the screen.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published