iphone - UITableViewCell isn't accessible with standard method? -


i'm working on project has controller, controller, holds logic (i.e. uitableviewdelegate). have view, view1 subclasses uiview containing uitableview property.

my problem want update first row (which sort of header-row) when happens. thought call:

uitableviewcell* headcell =      (uitableviewcell*) [view1.tableview          cellforrowatindexpath:[nsindexpath indexpathforrow:0 insection:0]]; 

but doesn't seem work. headcell (null) when nslog(@"%@", [headcell description]);

my controller calls [view1.tableview setdelegate:self], trying call [self cellforrow..] got unrecognized selector. nsindexpath should correct, right?

i've tried read on this, seems cellforrowatindexpath work, can't. got ideas?

edit: did workaround instead, can't accept answers without having tested them. though. workaround create cell referenced in cellforrowatindexpath:-method , tweak manually somewhere else. know it's not best practice, don't have time otherwise right now. contributions though, i'll check in later test them , accept answers if can work :)

use nsnotification

see apple doc nsnotification

it added header row , post anywhere application required data .


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -