iphone - Set text to textfield of table Cell in objective c outside UITableView delegate methods -


i new objective c,and have made demo app.

in app having uitableview contains textfield.when taps button(sign in using facebook), after login facebook come tableview screen,at time want set values came facebook response uitableview's textfields, unable tableview's delegate method calling once.

can please me set text tableview's textfield outside delegate method?

code

 nsstring *cellidentifier = [[signintabledata objectatindex:2] objectforkey:@"cellidentifier"];   signupcustomcell *cell = (signupcustomcell *)[signuptable dequeuereusablecellwithidentifier:cellidentifier];  //nslog(@"=====my username cell====%@",indexpath);  if(cell == nil)  {     cell = (signupcustomcell *)[[signupcustomcell alloc] initwithstyle:uitableviewcellstyledefault reuseidentifier:cellidentifier];  }  cell.backgroundcolor = [uicolor clearcolor];  cell.tablefield.delegate = self;   cgrect frmtxt = cell.tablefield.frame;  frmtxt.size.width = signuptable.frame.size.width + trail_margin_cell_content;  cell.tablefield.frame = frmtxt;  cell.tablefield.text = @"hello test"; 

if know @ row uitextfield can query uitableview cell @ given indexpath.

nsindexpath *ip = [nsindexpath indexpathforrow:0 insection:0]; uitableviewcell *cell = [self.tableview cellforrowatindexpath:ip]; 

you'll need cast cell ever custom cell using access uitextfield inside , custom uitableviewcell should have property points uitextfield or method update text.

-(void)viewwillappear or -(void)viewdidapper overrides in uiviewcontroller subclass places that, after have loaded data uitableview.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -