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

Your First iPhone App
($1.99)

iPhone Code Generator
($9.99)

Calcuccino Programmers' Calculator
($2.99)

DataFon(Build Apps on Windows)
(free)

Infinote Pinboard for Todos and Notes
(free)

picplz
(free)

poG
($2.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 02-20-2009, 08:35 AM   #1 (permalink)
Registered Member
 
himanshu's Avatar
 
Join Date: Jan 2009
Location: India
Posts: 93
Default how to access footer of UItable

hi to all

i am just work on UITable i need to write some content on footer of UITable
please tell how i can write the content on it
himanshu is offline   Reply With Quote
Old 02-20-2009, 08:59 AM   #2 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 176
Default

Quote:
Originally Posted by himanshu View Post
hi to all

i am just work on UITable i need to write some content on footer of UITable
please tell how i can write the content on it
Code:
- (void)viewDidLoad {
    [super viewDidLoad];

	UIButton *footer = [UIButton buttonWithType:UIButtonTypeCustom];
	[footer setFrame:CGRectMake(0,0,320,20)];
	[footer setFont:[UIFont systemFontOfSize:14.0]];
	[footer setTitleColor:[UIColor colorWithRed:0.3 green:0.34 blue:0.42 alpha:1.0] forState:UIControlStateNormal];
	[footer addTarget:self action:@selector(FunctionName) forControlEvents:UIControlEventTouchUpInside];
	[footer setTitle:NSLocalizedString(@"Your text",nil) forState:UIControlStateNormal];
	[self.tableView setTableFooterView:footer];
 }
iphonewave is offline   Reply With Quote
Old 02-20-2009, 09:09 AM   #3 (permalink)
Registered Member
 
himanshu's Avatar
 
Join Date: Jan 2009
Location: India
Posts: 93
Default Thank You

Quote:
Originally Posted by iphonewave View Post
Code:
- (void)viewDidLoad {
    [super viewDidLoad];

	UIButton *footer = [UIButton buttonWithType:UIButtonTypeCustom];
	[footer setFrame:CGRectMake(0,0,320,20)];
	[footer setFont:[UIFont systemFontOfSize:14.0]];
	[footer setTitleColor:[UIColor colorWithRed:0.3 green:0.34 blue:0.42 alpha:1.0] forState:UIControlStateNormal];
	[footer addTarget:self action:@selector(FunctionName) forControlEvents:UIControlEventTouchUpInside];
	[footer setTitle:NSLocalizedString(@"Your text",nil) forState:UIControlStateNormal];
	[self.tableView setTableFooterView:footer];
 }
hi
thank you for you help
himanshu is offline   Reply With Quote
Old 02-20-2009, 09:19 AM   #4 (permalink)
Registered Member
 
himanshu's Avatar
 
Join Date: Jan 2009
Location: India
Posts: 93
Default

Quote:
Originally Posted by iphonewave View Post
Code:
- (void)viewDidLoad {
    [super viewDidLoad];

	UIButton *footer = [UIButton buttonWithType:UIButtonTypeCustom];
	[footer setFrame:CGRectMake(0,0,320,20)];
	[footer setFont:[UIFont systemFontOfSize:14.0]];
	[footer setTitleColor:[UIColor colorWithRed:0.3 green:0.34 blue:0.42 alpha:1.0] forState:UIControlStateNormal];
	[footer addTarget:self action:@selector(FunctionName) forControlEvents:UIControlEventTouchUpInside];
	[footer setTitle:NSLocalizedString(@"Your text",nil) forState:UIControlStateNormal];
	[self.tableView setTableFooterView:footer];
 }
hi iphonewave

i have used that code but i require to add two button like


[Back Next]

please tell how to do it.
himanshu is offline   Reply With Quote
Old 02-20-2009, 09:25 AM   #5 (permalink)
Registered Member
 
Join Date: Dec 2008
Posts: 495
Default

Since setting the footer view takes a view, you should be able to guess that anything that derives from UIView would be sufficient. You could create your own UIView and lay it out however you want.
__________________
My Apps on AppStore : gScale (guitar scales reference), eMaze, eMaze Lite, eTimesheet
exorcyze is offline   Reply With Quote
Old 02-20-2009, 10:21 AM   #6 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 176
Default

Quote:
Originally Posted by exorcyze View Post
Since setting the footer view takes a view, you should be able to guess that anything that derives from UIView would be sufficient. You could create your own UIView and lay it out however you want.
Himanshu:

I concur, define a view, add two buttons to it. Then add this view instead of the button in the sample code.
iphonewave is offline   Reply With Quote
Old 02-20-2009, 10:42 PM   #7 (permalink)
Registered Member
 
himanshu's Avatar
 
Join Date: Jan 2009
Location: India
Posts: 93
Default thanks you exorcyze

Quote:
Originally Posted by exorcyze View Post
Since setting the footer view takes a view, you should be able to guess that anything that derives from UIView would be sufficient. You could create your own UIView and lay it out however you want.
hi exorcyze
thank you for giving your time

i will try this
himanshu is offline   Reply With Quote
Old 02-20-2009, 10:43 PM   #8 (permalink)
Registered Member
 
himanshu's Avatar
 
Join Date: Jan 2009
Location: India
Posts: 93
Default thanks you iphonewave

Quote:
Originally Posted by iphonewave View Post
Himanshu:

I concur, define a view, add two buttons to it. Then add this view instead of the button in the sample code.
thank for giving me the right direction i will try this

himanshu is offline   Reply With Quote
Old 02-21-2009, 08:19 AM   #9 (permalink)
Registered Member
 
himanshu's Avatar
 
Join Date: Jan 2009
Location: India
Posts: 93
Thumbs up

Quote:
Originally Posted by iphonewave View Post
Himanshu:

I concur, define a view, add two buttons to it. Then add this view instead of the button in the sample code.
hi iphonewave


finally i got success just becoz of you thanks ...
himanshu 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


» Advertisements
» Stats
Members: 51,375
Threads: 52,830
Posts: 225,478
Top Poster: BrianSlick (3,576)
Welcome to our newest member, darrentousignant
Powered by vBadvanced CMPS v3.1.0

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