[ios] Refactoring.

This commit is contained in:
VladiMihaylenko 2016-03-14 17:24:29 +03:00 committed by Sergey Yershov
parent 281a6de283
commit e5e8960651
7 changed files with 3 additions and 15 deletions

View file

@ -2,7 +2,6 @@
#import "AddSetVC.h"
#import "UIViewController+Navigation.h"
#import "AddSetTableViewCell.h"
#import "UIColor+MapsMeColor.h"
#include "Framework.h"
@ -61,7 +60,6 @@ static NSString * const kAddSetCellTableViewCell = @"AddSetTableViewCell";
{
self.cell = (AddSetTableViewCell *)[tableView dequeueReusableCellWithIdentifier:kAddSetCellTableViewCell];
self.cell.delegate = self;
self.cell.backgroundColor = [UIColor white];
return self.cell;
}

View file

@ -3,7 +3,6 @@
#import "MWMPlacePageEntity.h"
#import "MWMPlacePageViewManager.h"
#import "SelectSetVC.h"
#import "UIColor+MapsMeColor.h"
#import "UIViewController+Navigation.h"
#include "Framework.h"
@ -94,8 +93,6 @@
else
cell.accessoryType = UITableViewCellAccessoryNone;
}
cell.backgroundColor = [UIColor white];
cell.textLabel.textColor = [UIColor blackPrimaryText];
return cell;
}

View file

@ -115,8 +115,6 @@ namespace
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:[UITableViewCell className]];
cell.textLabel.textColor = [UIColor blackPrimaryText];
cell.backgroundColor = [UIColor white];
cell.textLabel.text = @([self dataSourceForSection:indexPath.section][indexPath.row].m_name.c_str());
if ([indexPath isEqual:self.selectedIndexPath])
cell.accessoryType = UITableViewCellAccessoryCheckmark;

View file

@ -45,6 +45,7 @@
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="white"/>
</userDefinedRuntimeAttributes>
</tableViewCellContentView>
<inset key="separatorInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="white"/>
</userDefinedRuntimeAttributes>

View file

@ -21,6 +21,8 @@
- (void)configure
{
self.backgroundColor = [UIColor white];
self.textLabel.textColor = [UIColor blackPrimaryText];
self.selectedBackgroundView = [[UIView alloc] init];
self.selectedBackgroundView.backgroundColor = [UIColor pressBackground];
}

View file

@ -1,7 +1,6 @@
#import "CommunityVC.h"
#import <MessageUI/MFMailComposeViewController.h>
#import "Statistics.h"
#import "UIColor+MapsMeColor.h"
#import "UIImageView+Coloring.h"
#import "UIViewController+Navigation.h"
@ -61,8 +60,6 @@ extern NSString * const kAlohalyticsTapEventKey;
cell.textLabel.text = item[@"Title"];
cell.imageView.image = [UIImage imageNamed:item[@"Icon"]];
cell.imageView.mwm_coloring = MWMImageColoringBlack;
cell.backgroundColor = [UIColor white];
cell.textLabel.textColor = [UIColor blackPrimaryText];
return cell;
}

View file

@ -10,7 +10,6 @@
#import <MessageUI/MFMailComposeViewController.h>
#import <sys/utsname.h>
#import "UIColor+MapsMeColor.h"
#import "UIImageView+Coloring.h"
#import "3party/Alohalytics/src/alohalytics_objc.h"
@ -128,14 +127,10 @@ extern NSDictionary * const deviceNames = @{@"x86_64" : @"Simulator",
if (!cell) // iOS 5
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[UITableViewCell className]];
cell.backgroundColor = [UIColor white];
NSString * osmUserName = osm_auth_ios::OSMUserName();
cell.textLabel.text = [item[@"Id"] isEqualToString:@"Authorization"] && osmUserName ? osmUserName : item[@"Title"];
cell.imageView.image = [UIImage imageNamed:item[@"Icon"]];
cell.imageView.mwm_coloring = MWMImageColoringBlack;
cell.textLabel.textColor = [UIColor blackPrimaryText];
cell.textLabel.backgroundColor = [UIColor clearColor];
return cell;
}