ich diesen Swift Code in meinem ProjektdetailTextLabel nicht zeigt auch nach Stil Einstellung
gelernt haben Untertiteloverride func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
var cell = tableView.dequeueReusableCell(withIdentifier: cellid, for: indexPath) as? UITableViewCell
if cell == nil {
cell = UITableViewCell(style: .subtitle, reuseIdentifier: cellid)
}
let user = users[indexPath.row]
cell!.textLabel?.text=user.Name
cell!.detailTextLabel?.text = user.Email
return cell!
}
Alles funktioniert gut, außer dass detaiTextLabel nicht showing.What ist mit meinem Code falsch?
Haben? –
@RajeshkumarR sprichst du über die Klasse in 'tableView.register (UserCell.self, forCellReuseIdentifier: cellid)' '? –
Haben Sie UserCell im Storyboard? –