Make UITableView rows be not selectable in chat

At some point iOS defaulted these to selectable. This makes them
not selectable.
This commit is contained in:
Scott Ludwig 2016-01-12 15:31:44 -08:00
parent de950ccc46
commit 7e1557b5f0
3 changed files with 5 additions and 3 deletions

View File

@ -2649,7 +2649,7 @@ bool MiniMapControl::CalcPoweredRadar()
#pragma clang diagnostic ignored "-Wtautological-undefined-compare" #pragma clang diagnostic ignored "-Wtautological-undefined-compare"
#endif #endif
if (gpmm == NULL) if (this == NULL)
return false; return false;
#ifdef __clang__ #ifdef __clang__
@ -2689,7 +2689,7 @@ void MiniMapControl::RedrawTRect(TRect *ptrc)
#pragma clang diagnostic ignored "-Wtautological-undefined-compare" #pragma clang diagnostic ignored "-Wtautological-undefined-compare"
#endif #endif
if (gpmm == NULL) if (this == NULL)
return; return;
#ifdef __clang__ #ifdef __clang__

View File

@ -7,6 +7,8 @@
return nil; return nil;
} }
self.selectionStyle = UITableViewCellSelectionStyleNone;
chatLabel_ = [[UILabel alloc] initWithFrame:CGRectZero]; chatLabel_ = [[UILabel alloc] initWithFrame:CGRectZero];
chatLabel_.backgroundColor = [UIColor whiteColor]; chatLabel_.backgroundColor = [UIColor whiteColor];
chatLabel_.opaque = YES; chatLabel_.opaque = YES;

View File

@ -423,7 +423,7 @@
ChatCell *cell = (ChatCell *)[tableView_ ChatCell *cell = (ChatCell *)[tableView_
dequeueReusableCellWithIdentifier:@"chatcell"]; dequeueReusableCellWithIdentifier:@"chatcell"];
if (cell == nil) { if (cell == nil) {
cell = [[[ChatCell alloc] initWithStyle:UITableViewCellSelectionStyleNone cell = [[[ChatCell alloc] initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:@"chatcell"] autorelease]; reuseIdentifier:@"chatcell"] autorelease];
} }
[self initializeChatCell:(int)indexPath.row cell:cell]; [self initializeChatCell:(int)indexPath.row cell:cell];