CustomCell に UITextFiled があります。次に、これらのセルを ProductDelivery クラスの UITableView にロードしています。UITextField *txtQty CellForRowAtIndexPath メソッドに初期値を割り当てています。
私の問題は、ユーザーが UITextField に入力した値が、Above Cell UItextField よりも大きくなってはならないことを検証したいということです。
ユーザーが UITextField CustomCell Class DidEndEding method class に値を入力するとき しかし、私はこの値を UITableView Class に入れたい それが Product Delivery です。したがって、それを検証して、新しい値で UITableView をリロードできます。誰かがこの問題を解決するのを手伝ってくれませんか??
@interface ProductDeliveryCell : UITableViewCell<UITextFieldDelegate>
@property(nonatomic,retain)IBOutlet UITextField *txtQty;
@end
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"ProDeliveryCell";
cell =(ProductDeliveryCell*) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell==nil)
{
NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"ProductDeliveryCell" owner:self options:nil];
cell = [topLevelObjects objectAtIndex:0];
}
cell.txtQty.text=del.Qty;
return cell;
}