Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Commit

Permalink
UIView’s that is used as tabs are now have auto resizing by width and…
Browse files Browse the repository at this point in the history
… height

This way, changes in tabs' sizes are reflected to their contents as well. This provides contents to be centered in every size.
  • Loading branch information
Ilter Cengiz committed Nov 7, 2013
1 parent 188cc96 commit dcf698e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ICViewPager/ICViewPager/ViewPagerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,7 @@ - (TabView *)tabViewAtIndex:(NSUInteger)index {

// Get view from dataSource
UIView *tabViewContent = [self.dataSource viewPager:self viewForTabAtIndex:index];
tabViewContent.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;

// Create TabView and subview the content
TabView *tabView = [[TabView alloc] initWithFrame:CGRectMake(0.0, 0.0, [self.tabWidth floatValue], [self.tabHeight floatValue])];
Expand Down

0 comments on commit dcf698e

Please sign in to comment.