07-28-2010, 08:33 PM
#1 (permalink )
Registered Member
Join Date: Jul 2010
Posts: 6
Button in a Table View
Hi to everyone,
sorry i need help. i would know how can i add a UIRec Button in a TableView, i it's possible.
I had make a tableView with IB, and now i need add 2 button.(like a "Add me")...i tried but only thing can i did it was a button in header(button than don't work it)...
tnx at all..and sorry for my bad english...
07-28-2010, 10:57 PM
#2 (permalink )
Registered Member
Join Date: Apr 2010
Posts: 651
ok so im a little confused. Do you want the button to be at the top in the nav bar, or like part of the individual cells?
07-29-2010, 04:37 AM
#3 (permalink )
Registered Member
Join Date: Jul 2010
Posts: 6
Quote:
Originally Posted by
kapps11
ok so im a little confused. Do you want the button to be at the top in the nav bar, or like part of the individual cells?
Like part of cells....
07-29-2010, 04:40 AM
#4 (permalink )
Registered Member
Join Date: Jul 2010
Location: Enschede, Netherlands
Posts: 198
Does every cell get the "add me" option?
07-29-2010, 04:52 AM
#5 (permalink )
Registered Member
Join Date: Jul 2010
Posts: 6
Quote:
Originally Posted by
rickrets
Does every cell get the "add me" option?
...
Schermata 2010-07-29 a 11.49.08.jpg
Like this..(thats a sample)
07-29-2010, 05:02 AM
#6 (permalink )
Registered Member
Join Date: Jul 2010
Location: Enschede, Netherlands
Posts: 198
It seems I can't view that sample
If you wan't complete control over your cells, take a look at creating custom cell..
07-29-2010, 05:32 AM
#7 (permalink )
Registered Member
Join Date: Jul 2010
Posts: 6
Quote:
Originally Posted by
rickrets
It seems I can't view that sample
If you wan't complete control over your cells, take a look at creating custom cell..
It'a a custom View..half view have a table cell, other half have something else,like a button, label,text.
Schermata 2010-07-29 a 11.49.08.jpg
image don't work with chrome
08-05-2010, 07:20 AM
#8 (permalink )
Registered Member
Join Date: Jul 2010
Posts: 6
ok...i'm dan..
i had found a sample code for iphone 4, it call HeaderFooter....it was perfect for me...
this is part of code if you need it
Code:
- (void)viewDidLoad {
// set up the table's header view based on our UIView 'myHeaderView' outlet
CGRect newFrame = CGRectMake(0.0, 0.0, self.tableView.bounds.size.width, self.myHeaderView.frame.size.height);
self.myHeaderView.backgroundColor = [UIColor clearColor];
self.myHeaderView.frame = newFrame;
self.tableView.tableHeaderView = self.myHeaderView; // note this will override UITableView's 'sectionHeaderHeight' property
// set up the table's footer view based on our UIView 'myFooterView' outlet
newFrame = CGRectMake(0.0, 0.0, self.tableView.bounds.size.width, self.myFooterView.frame.size.height);
self.myFooterView.backgroundColor = [UIColor clearColor];
self.myFooterView.frame = newFrame;
self.tableView.tableFooterView = self.myFooterView; // note this will override UITableView's 'sectionFooterHeight' property
}
- (void)viewDidUnload
{
self.myHeaderView = nil;
self.myFooterView = nil;
self.listaOggetti = nil;
//self.listaDettaglioOggetti = nil;
}
For work this code you need make 2 view with IB. 1 for Header and 1 for Footer.
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: 338
16 members and 322 guests
appservice , bignoggins , dermotos , Domele , EXOPTENDAELAX , guusleijsten , Hamad , heshiming , mariano_donati , Objective Zero , ohmniac , Paul Slocum , Rudy , Sloshmonster , teebee74
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,653
Threads: 94,115
Posts: 402,888
Top Poster: BrianSlick (7,990)
Welcome to our newest member, ohmniac