テーブルをスクロールすると、ラグが表示されます。写真、またはデータベースの長いテキストは表示されません。追加情報が必要な場合は申し訳ありませんが、私の悪い英語スクロール時のテーブルビューの遅れ
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
var cell = tableView.dequeueReusableCellWithIdentifier("audioCell", forIndexPath: indexPath) as? AudiosTableViewCell
if cell == nil {
cell = UITableViewCell(style: UITableViewCellStyle.Value1, reuseIdentifier: "audioCell") as? AudiosTableViewCell
} else {
let realm = try! Realm()
let audios = realm.objects(Music)[indexPath.row]
let duration = audios.duration
var durationString = ""
if duration/60 < 10 {
durationString = durationString + "0" }
durationString = durationString + String(duration/60) + ":"
if duration%60 < 10 {
durationString = durationString + "0" }
durationString = durationString + String(duration%60)
cell!.artistLabel.text = audios.artist
cell!.titleLabel.text = audios.title
cell!.durationLabel.text = durationString
}
return cell!
}
のために、あなたが必要な正確に何を書いてください。私は多くの情報を見直し、多くの方法を試しました。私は苦しんでいます。それはうまくいきません。
はどうもありがとうございました、私はあなたに+1の評判を置くだろうが、それは私ができないことです –