mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
iOS: fixed #819 ("+" button in Saved Story tags list)
This commit is contained in:
parent
7d8bd0db96
commit
d26130b2ef
1 changed files with 5 additions and 6 deletions
|
@ -28,13 +28,11 @@ const NSInteger kHeaderHeight = 24;
|
|||
tagsTableView = [[UITableView alloc] init];
|
||||
tagsTableView.delegate = self;
|
||||
tagsTableView.dataSource = self;
|
||||
tagsTableView.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
|
||||
tagsTableView.frame = CGRectMake(0.0, 44.0, self.view.frame.size.width, self.view.frame.size.height - 44.0);
|
||||
tagsTableView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
|
||||
[self.view addSubview:tagsTableView];
|
||||
|
||||
addTagBar = [[UISearchBar alloc]
|
||||
initWithFrame:CGRectMake(0, 0,
|
||||
CGRectGetWidth(tagsTableView.frame), 44.)];
|
||||
addTagBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0.0, 0.0, self.view.frame.size.width, 44.0)];
|
||||
[addTagBar setDelegate:self];
|
||||
[addTagBar setImage:[UIImage imageNamed:@"add_tag.png"]
|
||||
forSearchBarIcon:UISearchBarIconSearch
|
||||
|
@ -44,13 +42,14 @@ const NSInteger kHeaderHeight = 24;
|
|||
[addTagBar setTintColor:UIColorFromRGB(NEWSBLUR_WHITE_COLOR)];
|
||||
[addTagBar setSearchBarStyle:UISearchBarStyleMinimal];
|
||||
[addTagBar setAutocapitalizationType:UITextAutocapitalizationTypeNone];
|
||||
tagsTableView.tableHeaderView = addTagBar;
|
||||
[self.view addSubview:addTagBar];
|
||||
}
|
||||
|
||||
- (void)viewWillAppear:(BOOL)animated {
|
||||
[super viewWillAppear:animated];
|
||||
|
||||
tagsTableView.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
|
||||
tagsTableView.frame = CGRectMake(0.0, 44.0, self.view.frame.size.width, self.view.frame.size.height - 44.0);
|
||||
addTagBar.frame = CGRectMake(0.0, 0.0, self.view.frame.size.width, 44.0);
|
||||
[tagsTableView reloadData];
|
||||
[tagsTableView setContentOffset:CGPointZero];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue