[ios] Changed background color in grouped tableviews

This commit is contained in:
Igor Khmurets 2013-11-29 18:39:41 +03:00 committed by Alex Zolotarev
parent c3316bccb1
commit b96f5417e9
7 changed files with 32 additions and 0 deletions

View file

@ -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];

View file

@ -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];

View file

@ -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

View file

@ -20,6 +20,7 @@
@interface UIColor (HexColor)
+ (UIColor *)colorWithColorCode:(NSString *)colorCode;
+ (UIColor *)applicationBackgroundColor;
@end

View file

@ -36,6 +36,11 @@
return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
}
+ (UIColor *)applicationBackgroundColor
{
return [UIColor colorWithColorCode:@"efeff4"];
}
@end

View file

@ -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

View file

@ -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