forked from organicmaps/organicmaps
[ios] Changed background color in grouped tableviews
This commit is contained in:
parent
c3316bccb1
commit
b96f5417e9
7 changed files with 32 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
#import "BookmarksRootVC.h"
|
||||
#import "BookmarksVC.h"
|
||||
#import "Statistics.h"
|
||||
#import "UIKitCategories.h"
|
||||
|
||||
#include "Framework.h"
|
||||
|
||||
|
@ -225,6 +226,13 @@
|
|||
[self.navigationController popToRootViewControllerAnimated:YES];
|
||||
}
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
self.tableView.backgroundView = nil;
|
||||
self.tableView.backgroundColor = [UIColor applicationBackgroundColor];
|
||||
}
|
||||
|
||||
- (void)viewWillAppear:(BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#import "Statistics.h"
|
||||
#import "CircleView.h"
|
||||
#import "ColorPickerView.h"
|
||||
#import "UIKitCategories.h"
|
||||
|
||||
#include "Framework.h"
|
||||
|
||||
|
@ -356,6 +357,13 @@
|
|||
//*********** End of Location manager callbacks ********************
|
||||
//******************************************************************
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
self.tableView.backgroundView = nil;
|
||||
self.tableView.backgroundColor = [UIColor applicationBackgroundColor];
|
||||
}
|
||||
|
||||
- (void)viewWillAppear:(BOOL)animated
|
||||
{
|
||||
[m_locationManager start:self];
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#import "ShareActionSheet.h"
|
||||
#import "PlaceAndCompasView.h"
|
||||
#import "CircleView.h"
|
||||
#import "UIKitCategories.h"
|
||||
|
||||
#include "Framework.h"
|
||||
#include "../../search/result.hpp"
|
||||
|
@ -161,6 +162,9 @@ typedef enum {Editing, Saved} Mode;
|
|||
[self addRightNavigationItemWithAction:@selector(save)];
|
||||
else
|
||||
[self addRightNavigationItemWithAction:@selector(edit)];
|
||||
|
||||
self.tableView.backgroundView = nil;
|
||||
self.tableView.backgroundColor = [UIColor applicationBackgroundColor];
|
||||
}
|
||||
|
||||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
@interface UIColor (HexColor)
|
||||
|
||||
+ (UIColor *)colorWithColorCode:(NSString *)colorCode;
|
||||
+ (UIColor *)applicationBackgroundColor;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -36,6 +36,11 @@
|
|||
return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
||||
}
|
||||
|
||||
+ (UIColor *)applicationBackgroundColor
|
||||
{
|
||||
return [UIColor colorWithColorCode:@"efeff4"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#import "MapsAppDelegate.h"
|
||||
#import "MapViewController.h"
|
||||
#import "MWMApi.h"
|
||||
#import "UIKitCategories.h"
|
||||
|
||||
#include "../../../search/result.hpp"
|
||||
#include "../../../platform/platform.hpp"
|
||||
|
@ -87,6 +88,8 @@ typedef enum {APIPOINT, POI, MYPOSITION} Type;
|
|||
[super viewDidLoad];
|
||||
[self setTitle:NSLocalizedString(@"info", nil)];
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(orientationChanged) name:UIDeviceOrientationDidChangeNotification object:nil];
|
||||
self.tableView.backgroundView = nil;
|
||||
self.tableView.backgroundColor = [UIColor applicationBackgroundColor];
|
||||
}
|
||||
|
||||
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#import "SelectableCell.h"
|
||||
#import "LinkCell.h"
|
||||
#import "WebViewController.h"
|
||||
#import "UIKitCategories.h"
|
||||
#include "../../../platform/settings.hpp"
|
||||
#include "../../../platform/platform.hpp"
|
||||
#include "../../../platform/preferred_languages.hpp"
|
||||
|
@ -29,6 +30,8 @@ typedef NS_ENUM(NSUInteger, Section)
|
|||
{
|
||||
[super viewDidLoad];
|
||||
self.title = NSLocalizedString(@"settings", nil);
|
||||
self.tableView.backgroundView = nil;
|
||||
self.tableView.backgroundColor = [UIColor applicationBackgroundColor];
|
||||
}
|
||||
|
||||
- (void)viewWillAppear:(BOOL)animated
|
||||
|
|
Loading…
Add table
Reference in a new issue