mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-06-07 20:04:57 -06:00
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:
parent
de950ccc46
commit
7e1557b5f0
@ -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__
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user