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 03-24-2010, 06:09 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2010
Location: Tennessee
Posts: 23
DevinSnipes is on a distinguished road
Post Footer In TableView

Hello.

I have a UITableView and I am trying to add a footer to my UITableView. I don't want a button in the footer or anything, but just a message. I have the code that I have so far below,and if you know what to do or what I'm doing wrong, please respond.

This is the code that I have in my .m:

-(NSString *)tableViewint)titleForFooterInSection NSInteger)section
{
switch (section) {
case 0:
@"My message here";
break;
default:
break;
}

}
__________________
-Regards,

Devin Snipes
My Website
Follow Me on Twitter

My AppStore Apps:
Am I Ugly(Free)
uChat For iPhone(Free)
MCS For iPhone(Free)

Last edited by DevinSnipes; 03-24-2010 at 06:16 PM.
DevinSnipes is offline   Reply With Quote
Old 03-24-2010, 06:42 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

You aren't returning anything.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 03-24-2010, 07:45 PM   #3 (permalink)
Registered Member
 
Join Date: Mar 2010
Location: Tennessee
Posts: 23
DevinSnipes is on a distinguished road
Default Huh?

Quote:
Originally Posted by BrianSlick View Post
You aren't returning anything.
I returned 0; and I got nothing. The footer still didn't show after I returned that. Please help!
__________________
-Regards,

Devin Snipes
My Website
Follow Me on Twitter

My AppStore Apps:
Am I Ugly(Free)
uChat For iPhone(Free)
MCS For iPhone(Free)
DevinSnipes is offline   Reply With Quote
Old 03-24-2010, 07:46 PM   #4 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

You have to return a string. This is basic C stuff here.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 03-24-2010, 07:48 PM   #5 (permalink)
Registered Member
 
Join Date: Mar 2010
Location: Tennessee
Posts: 23
DevinSnipes is on a distinguished road
Default Ok!

Quote:
Originally Posted by BrianSlick View Post
You aren't returning anything.
Thanks. I got it now. I just returned the string, and it worked perfectly! Thanks man..
__________________
-Regards,

Devin Snipes
My Website
Follow Me on Twitter

My AppStore Apps:
Am I Ugly(Free)
uChat For iPhone(Free)
MCS For iPhone(Free)
DevinSnipes is offline   Reply With Quote
Old 03-25-2010, 06:45 AM   #6 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 5
jmascore is on a distinguished road
Default

Quote:
Originally Posted by DevinSnipes View Post
Thanks. I got it now. I just returned the string, and it worked perfectly! Thanks man..
Do you not also have to set the heightforfooterinsection property?
jmascore is offline   Reply With Quote
Reply

Bookmarks

Tags
tables, tabs, twitter, uitableview, webview

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: 344
11 members and 333 guests
akacaj, c2matrix, cgokey, esoteric, givensur, HemiMG, Mirotion22, mjnafjke, Pudding, SLIC, Techgirl-52
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,651
Threads: 94,115
Posts: 402,887
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Mirotion22
Powered by vBadvanced CMPS v3.1.0

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