Skip to content

Commit

Permalink
Changed to add setEstimatedRowHeight with setRowHeight set to automat…
Browse files Browse the repository at this point in the history
…ic. Also added fix for ActivityLogVC and SupportVC
  • Loading branch information
Allen Snook committed Oct 21, 2014
1 parent 9b03e95 commit c93c06b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ - (id)init
- (void)viewDidLoad
{
[super viewDidLoad];

[self.tableView setEstimatedRowHeight:50.f];
[self.tableView setRowHeight:UITableViewAutomaticDimension];

[WPStyleGuide configureColorsForView:self.view andTableView:self.tableView];
[self loadLogFiles];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ - (void)viewDidLoad
{
[super viewDidLoad];

[self.tableView setRowHeight:50.f];
[self.tableView setEstimatedRowHeight:50.f];
[self.tableView setRowHeight:UITableViewAutomaticDimension];

self.title = NSLocalizedString(@"Settings", @"App Settings");
self.doneButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Done", @"") style:[WPStyleGuide barButtonStyleForBordered] target:self action:@selector(dismiss)];
self.navigationItem.rightBarButtonItem = self.doneButton;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ - (id)init
- (void)viewDidLoad
{
[super viewDidLoad];

[self.tableView setEstimatedRowHeight:50.f];
[self.tableView setRowHeight:UITableViewAutomaticDimension];

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
self.feedbackEnabled = [defaults boolForKey:UserDefaultsFeedbackEnabled];
Expand Down

0 comments on commit c93c06b

Please sign in to comment.