I now want to refer to the table, but there isn’t a variable in my .h file as it wasn’t required when originally created. The table works great, can add/display/etc.
I tried adding “myTable” to the .h and then linking in IB (the table was linked to “view” and I could/did select “myTable”), but my first try didn’t work and I was afraid of messing up my (somewhat) working app 😉
Hope the question makes sense!!!
thx!
If I understand you correctly, you want to link the table with your code. If that’s the case, then in your header file you need to add a property like so
And then synthesize it in your .m file like so
Once you’ve done that you will be able to link it up in interface builder. But bare in mind that if you want to populate/interact with the table further you need to set the data source/delegate of your table to your file’s owner. Here is a tutorial on how to do that – http://www.switchonthecode.com/tutorials/how-to-create-and-populate-a-uitableview
Does that answer your question?