Subscribe ( )

iPhone Programming Tutorials

 

Forum

You must be logged in to post Login Register

Search 

How to connect code to an UITableView inside a UIView

User Post

3:01 am
October 23, 2008


kappolo

Noob

posts 3

1

Hi all! 
Well, i have a problem. I used IB and have a situation like this:

On a nib file: 
- a view “myView” 
- a tableView inside the View called “myTableView” 

On XCode: 
- myView.m and .h with standard methods taken by UIView 
- myTableView.m and .h with standard methods taken by UITableView 

Both the classes are properly connected.

If i execute the code with breakpoints on myTableView class methods, i 
can see that they are never called, even when the table is loaded in 
the simulator. 

What am i doing wrong in connecting to XCode? 
Thanks in advance :)

3:11 am
October 23, 2008


AdeC

iCoder

posts 15

2

Ive got a similar problem in another post where I have created a tabbar which loads multiple different views. One of the views has a table view on it but I cant get the tableview to load data or even fire the code that loads the data.


Hope someone can help us here!

3:14 am
October 23, 2008


kappolo

Noob

posts 3

3

Exacly the same problem! I've tried everything with no success….

Because if you use an Outlet you can connect to the tableView but not define the methods as far as i know…

I hope somebody will help us :)

3:19 am
October 23, 2008


AdeC

iCoder

posts 15

4

I have added a suggestion for a tutorial which makes a project from the basic building blocks rather than a template. Hopefully that way we get a better understanding of how things fit together!


5:47 am
October 23, 2008


kappolo

Noob

posts 3

5

Solved :)

I just need to set delegate and datasource of “myTableView” to “myView”'s file owner, and implement all the table methods on the myView.m file :)


About the iCodeBlog forum

Currently Online:

5 Guests

Maximum Online: 19

Forums:

Groups: 2

Forums: 6

Topics: 156

Posts: 503

Members:

There are 268 members

There are 1 guests


Brandon has made 81 posts

Top Posters:

bobcubsfan - 48

crazyiez - 30

Uhu - 17

VertigoSol - 17

Nick - 15

Administrator: Brandon | Moderators: VertigoSol


© - Version 3.1.4 (Build 357)  

Share and Enjoy: