forked from organicmaps/organicmaps
[ios] Refactoring.
This commit is contained in:
parent
281a6de283
commit
e5e8960651
7 changed files with 3 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue