我正在尝试在 UITableView 的动态单元格内设置 UITextField 的边框颜色。那是代码:
UIColor *searchBorderColor = [UIColor colorWithRed:160.0/255.0
green: 160.0/255.0
blue:160.0/255.0
alpha: 1.0];
cell.searchField.layer.borderColor = [searchBorderColor CGColor];
我尝试将其放入 cellForRowAtIndexPath、willDisplayCell、didEndDisplayingCell - 它不起作用。请帮忙!