主題 : 設(shè)置點(diǎn)擊UITableCell顏色不改變
把單元格點(diǎn)擊時(shí)狀態(tài) 改為None
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
這個(gè)代理中 加上一句
cell.selectionStyle = UITableViewCellSelectionStyleNone;
??
??
const 定義警告 Sending 'const NSString *__strong' to parameter of type 'NSString * _Nullable'...
const NSString * STOP_PRINT = @"停止打印";
在使用的地方出現(xiàn)警告
[objc] view plain copy 在CODE上查看代碼片派生到我的代碼片
[barItem setTitle:STOP_PRINT];
Sending 'const NSString *__strong' to parameter of type'NSString * _Nullable' discards qualifiers
講const的位置放在*后面即可
[objc] view plain copy 在CODE上查看代碼片派生到我的代碼片
static NSString * const STOP_PRINT = @"停止打印";