Retrieve all rows inserted in sqlite database and display in table view cells containing labels as subviews with different sections

前端 未结 2 1079
一向
一向 2021-01-26 00:00

I am newbie to objective-c and sqlite.I have inserted data in to table using sqlite successfully.My project contains 2 pages

Add Reminder page:Where user enters data and

2条回答
  •  心在旅途
    2021-01-26 00:32

    You should really create a Custom UITableViewCell.

    But for a quick fix answer you could replace the bottom [cell addSubview] lines with the following

    cell.contentView = [[UIView alloc] init] autorelease]
    [cell.contentView addSubview:label1];
    [cell.contentView addSubview:label2];
    [cell.contentView addSubview:label3];
    [cell.contentView addSubview:label4];
    

提交回复
热议问题