Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-09-2008, 07:10 PM   #1 (permalink)
New Member
 
Join Date: May 2008
Posts: 22
fasttech is an unknown quantity at this point
Default Changing the table frame in a UITableViewController

Hi,

I have a UITableViewController that I am trying to make the table start further down the screen rather than being directly beneath the Navigation bar. I am doing this all from code instead of using IB. Basically I want to add a UITextField below the UINavigation bar but above the UITable. But no matter what I change, the table still starts directly below the nav bar. I have tried changing the tableView frame and bounds in both the loadView() and viewWillAppear() methods with no change. Any ideas?

Thanks
fasttech is offline   Reply With Quote
Old 05-09-2008, 08:36 PM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 71
halusha is an unknown quantity at this point
Default Re: Changing the table frame in a UITableViewController

It is getting resized because UITableViewController sets it's UIViewController.view to the table view. I think what you probably want to do in this case is make a UIViewController subclass that has a UITextField and a UITableView as subviews of your UIViewController.view.
halusha is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing values on UISwitch martinn iPhone SDK Development 3 11-05-2008 04:34 PM
Changing ring to vibrate jwpin iPhone SDK Development 2 07-14-2008 12:19 PM
Table view aa233 iPhone SDK Development 1 07-10-2008 05:11 PM
Changing UIBackBarButtonItem title? myersn024 iPhone SDK Development 7 06-19-2008 03:03 PM
Changing Views viet124 iPhone SDK Development 3 05-13-2008 10:08 AM


» Advertisements
» Online Users: 322
6 members and 316 guests
Anwerbl, guusleijsten, HowEver, LEARN2MAKE, mottdog, Objective Zero
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,879
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:37 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0