02-20-2009, 08:35 AM
#1 (permalink )
Registered Member
Join Date: Jan 2009
Location: India
Posts: 93
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
02-20-2009, 08:59 AM
#2 (permalink )
Registered Member
Join Date: Nov 2008
Posts: 176
Quote:
Originally Posted by
himanshu
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];
}
02-20-2009, 09:09 AM
#3 (permalink )
Registered Member
Join Date: Jan 2009
Location: India
Posts: 93
Thank You
Quote:
Originally Posted by
iphonewave
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
02-20-2009, 09:19 AM
#4 (permalink )
Registered Member
Join Date: Jan 2009
Location: India
Posts: 93
Quote:
Originally Posted by
iphonewave
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.
02-20-2009, 09:25 AM
#5 (permalink )
Registered Member
Join Date: Dec 2008
Posts: 495
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.
02-20-2009, 10:21 AM
#6 (permalink )
Registered Member
Join Date: Nov 2008
Posts: 176
Quote:
Originally Posted by
exorcyze
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.
02-20-2009, 10:42 PM
#7 (permalink )
Registered Member
Join Date: Jan 2009
Location: India
Posts: 93
thanks you exorcyze
Quote:
Originally Posted by
exorcyze
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
02-20-2009, 10:43 PM
#8 (permalink )
Registered Member
Join Date: Jan 2009
Location: India
Posts: 93
thanks you iphonewave
Quote:
Originally Posted by
iphonewave
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
02-21-2009, 08:19 AM
#9 (permalink )
Registered Member
Join Date: Jan 2009
Location: India
Posts: 93
Quote:
Originally Posted by
iphonewave
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 ...
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
» Advertisements
» Online Users: 648
53 members and 595 guests
alksys7 , amatoria , anonymous@ , Balillas , BillSmith , bob8caldwell , BobK , brentmc79 , ChristianK , CHV , crunkstar , darrentousignant , david77 , dcinqc , deepdelver , desk110 , e.desk , e.dsk100 , e.dsk112 , edesk01 , Emeric , ftwhere , garyshaf , gtyt38 , h2h , HookieTookie , ignicolist , iGuessSo , JamesCahall , JasonR , jbro , Jeremy1026 , jessk2herb , Kryckter , listingboat , lukasluk , MarkC , masc2279 , MiniRobinho , moehac , mofu , nobre84 , raheel , ryanduff , shebinc , Speed , strick242 , sunny dee , virvalid , Ziggy
Most users ever online was 965, 06-30-2010 at 04:26 AM.
» Stats
Members: 51,375
Threads: 52,830
Posts: 225,478
Top Poster: BrianSlick (3,576)
Welcome to our newest member, darrentousignant