ios - iPhone SDK: Call tableview function anywhere -



ios - iPhone SDK: Call tableview function anywhere -

i wanted know if there way phone call tableview function anywhere throughtout program. mean want phone call function:

- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath {

anywhere in code. there anyway of using self function or or if possible @ all? thanks.

you sure can. have able pass nsindexpath object it, this:

uitableviewcell *cell = [self.tableview cellforrowatindexpath:indexpath];

once cellforrowatindexpath returns cell object, can access properties, etc. like:

cell.backgroundview.alpha = 0.0;

also, if using custom uitableviewcell, can custom cell returned type casting call:

mycustomcellclass *cell = (mycustomcellclass *)[self.tableview cellforrowatindexpath:indexpath];

iphone ios xcode uitableview

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -