Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lesliekkwu

macrumors newbie
Original poster
Dec 28, 2008
8
0
I would like to ask how should I set the position of the UITableView on the screen.

Did some googling but it seems not work...I use the following

tblView = [[UITableView alloc] initWithFrame:CGRectMake(0.f, 250.f, 321.f, 100.f)];

Using the above, I cannot drag a tableview on the IB. Also, I don't see any of my cell contents appear.

Any help will be greatly appreciated.

Cheers,

Leslie
 

dejo

Moderator emeritus
Sep 2, 2004
15,982
452
The Centennial State
I would like to ask how should I set the position of the UITableView on the screen.

Did some googling but it seems not work...I use the following

tblView = [[UITableView alloc] initWithFrame:CGRectMake(0.f, 250.f, 321.f, 100.f)];

Using the above, I cannot drag a tableview on the IB. Also, I don't see any of my cell contents appear.
I think you are a little confused. You cannot add a tableView programatically and then manipulate it via IB. You must either add it in the code or add it via IB. (You can, however, manipulate it in the code once it's been added in IB, assuming you have your connections set up correctly).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.