iphone - In IB, I created a table and now want to assign a variable to it -
i want refer table, there isn't variable in .h file wasn't required when created. table works great, can add/display/etc.
i tried adding "mytable" .h , linking in ib (the table linked "view" , could/did select "mytable"), first try didn't work , afraid of messing (somewhat) working app ;-)
hope question makes sense!!!
thx!
if understand correctly, want link table code. if that's case, in header file need add property
@property(nonatomic, retain) iboutlet uitableview *mytable;
and synthesize in .m file so
@synthesize mytable; once you've done able link in interface builder. bare in mind if want populate/interact table further need set data source/delegate of table file's owner. here tutorial on how - http://www.switchonthecode.com/tutorials/how-to-create-and-populate-a-uitableview
does answer question?
Comments
Post a Comment