こんにちは!
swift
1 func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { 2 3 let reuseIdentifier = "CellID"; 4 var cell = tableView.dequeueReusableCellWithIdentifier(reuseIdentifier); 5 if cell == nil { 6 cell = UITableViewCell(style:UITableViewCellStyle.Subtitle,reuseIdentifier:reuseIdentifier) 7 } 8 // Cellに値を設定する. 9 cell!.textLabel!.text = list[indexPath.row].title 10 cell!.detailTextLabel!.text = "abc" 11 cell!.detailTextLabel!.textAlignment = NSTextAlignment.Right 12 13 return cell! 14 }
でUITableViewCellのdetailTextLabelを右寄せできると
思ったのですが、右寄せできません。
困っています。アドバイスをお願いします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/05/12 10:05