Skip to content

Commit

Permalink
Auto-adjusting font size on original story view in iphone app.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelclay committed Jul 18, 2011
1 parent 945b604 commit ecc2f7c
Show file tree
Hide file tree
Showing 3 changed files with 9,096 additions and 9,050 deletions.
2 changes: 1 addition & 1 deletion media/iphone/Classes/OriginalStoryViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ - (void)viewDidLoad {
address.autoresizingMask = UIViewAutoresizingFlexibleWidth;
address.borderStyle = UITextBorderStyleRoundedRect;
address.font = [UIFont systemFontOfSize:15];
[address setAdjustsFontSizeToFitWidth:YES];
address.keyboardType = UIKeyboardTypeURL;
address.autocapitalizationType = UITextAutocapitalizationTypeNone;
address.clearButtonMode = UITextFieldViewModeWhileEditing;
Expand All @@ -80,7 +81,6 @@ - (void)viewDidLoad {
addressFrame.size.height);
UIButton *close = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[close setFrame:closeButtonFrame];
[close setFont:[UIFont systemFontOfSize:12]];
[close setTitle:@"Close" forState:UIControlStateNormal];
[close addTarget:self action:@selector(doCloseOriginalStoryViewController) forControlEvents:UIControlEventTouchUpInside];
[navBar addSubview:close];
Expand Down
Loading

0 comments on commit ecc2f7c

Please sign in to comment.