優先順位がLow、Medium、Highcustom Picker
の があります。
2 つのラベルを持つ Acustom Table
がありmain_View
ます。1 つはアイテム名、もう 1 つはアイテムの優先度です。
ユーザーが優先度を選択して必要なデータを挿入すると、アイテム名とアイテムの優先度main_View
を取得する場所に移動します。
私はこれを達成しましたが、私が望むのは、上の項目をmain_View
優先順位に従って配置する必要があることです。つまり、 Highest、Medium、次にLowです。
static NSString CellIdentifier = @"Cell";
RecordList *records = [tablecontentArray objectAtIndex:indexPath.row];
CustomCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil)
{
NSArray *xibPath = [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];
for (id fileObjects in xibPath)
{
cell = (CustomCell)fileObjects;
}
}
cell.itemName.text =records.toDoItem;
cell.itemPriority.text = records.toDoPriority;
return cell;