hey guys, pretty last thing need solve before being done app, , it's pretty easy sure simple problem overlooking answer no reason. here is.
of app written in 1 class (i know it's bad practice that's happened.)
there uitableview in class, filled custom cells class.
problem have have button inside of custom cells, , need button work other class. had been working java or c either use inheritance or make method static, don't know how in obj c.
here goal: need either implement bottom method
code:
-(ibaction)button:(id)sender;
in other class, or need able access text field first class, inside of custom cells button method. (i.e. when click button in cell, need print inside of text field in first class. there other variables need access, can once problem solved)
don't see need me write down code, since general question , isn't code specific, if need show of it.
thank in advance!!
- steven french
well, tableviewcontroller instantiates custom tableviewcells, correct? so, long ibaction method public, should able call it.
Forums iPhone, iPad, and iPod Touch iOS Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment