func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
var cell = tableView.dequeueReusableCellWithIdentifier("{cellIdentifier}", forIndexPath: indexPath) as! HogeCell
// セルの背景色はなし
cell.backgroundColor = UIColor.clearColor()
// 選択された背景色を白に設定
var cellSelectedBgView = UIView()
cellSelectedBgView.backgroundColor = UIColor.whiteColor()
cell.selectedBackgroundView = cellSelectedBgView
return cell
}
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
1514