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 17

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 17

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 :)

Search 

About the iCodeBlog forum

Most Users Ever Online:

44


Currently Online:

5 Guests

Forum Stats:

Groups: 2

Forums: 6

Topics: 419

Posts: 893

Membership:

There are 934 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

bobcubsfan – 54

crazyiez – 30

Uhu – 17

AdeC – 17

Nick – 15

jitesh61 – 12

Administrators: Brandon (88 Posts), Collin (0 Posts)

Moderators: VertigoSol (26 Posts)



©   

  • Posted by on 6 Aug 2008 in Uncategorized
  •   |  
  •   |  
  •   |  
  • Comments Off

Comments are closed.