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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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-10-2009, 08:47 PM   #1 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 79
Default TableView in UIView or navigation controller with other objects

Quick question. I know how a navigation controller works and how to popular the table view in it with data. However, I haven't been able to figure out how to get a navigation controller or table view controller into a UIView with other objects.

So, for instance, if I wanted two buttons in the view as well as a table view below them. For example, the phone.app has a label and image above the table view. How is this done? Is it navigation controllers within uiviews or tableviewcontroller within uiviews?

Thanks!
__________________
Josh Holat Software
Check out my software at http://www.joshholat.com/iphoneapps.php
joshholat is offline   Reply With Quote
Old 05-10-2009, 08:58 PM   #2 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 77
Default

A navigation controller is used to manage your view hierarchy - specifically, to keep track of various view controllers and their views and transition between them. What it sounds like you'd like to do is contained within one view, meaning navigation controllers have nothing to do with what you're looking for.

The simplest way to have a tableview with some other UI objects is probably to use a TableView as the main view itself, and put the buttons in its header. I have to run but look up tableviews and their headers and it should lead you down the right path.
shonday is offline   Reply With Quote
Old 05-10-2009, 09:01 PM   #3 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 79
Default

Quote:
Originally Posted by shonday View Post
A navigation controller is used to manage your view hierarchy - specifically, to keep track of various view controllers and their views and transition between them. What it sounds like you'd like to do is contained within one view, meaning navigation controllers have nothing to do with what you're looking for.

The simplest way to have a tableview with some other UI objects is probably to use a TableView as the main view itself, and put the buttons in its header. I have to run but look up tableviews and their headers and it should lead you down the right path.
Sorry, I didn't explain it well. I don't want the button to be in the title bar. I want the top half to be ui elements like text fields and buttons and what not and the bottom half to be a table view. However, I want that bottom half table view to also be a navigation view and push new items onto the screen...
__________________
Josh Holat Software
Check out my software at http://www.joshholat.com/iphoneapps.php
joshholat is offline   Reply With Quote
Old 05-10-2009, 11:04 PM   #4 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 77
Default

Quote:
Originally Posted by joshholat View Post
Sorry, I didn't explain it well. I don't want the button to be in the title bar. I want the top half to be ui elements like text fields and buttons and what not and the bottom half to be a table view. However, I want that bottom half table view to also be a navigation view and push new items onto the screen...
It's not the title bar. You can set the tableview's tableHeaderView property to be any kind of view you want, as well as modify its size.
shonday is offline   Reply With Quote
Reply

Bookmarks

Tags
controller, navigation, table view

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



» Advertisements
» Online Users: 258
20 members and 238 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, HemiMG, iDifferent, IphoneSdk, jakerocheleau, JasonR, MACralik, NSeven, prchn4christ, Rudy, silverwiz, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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