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 07-28-2010, 08:33 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 6
smaramba is on a distinguished road
Default 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...
smaramba is offline   Reply With Quote
Old 07-28-2010, 10:57 PM   #2 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 651
kapps11 is on a distinguished road
Default

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?
kapps11 is offline   Reply With Quote
Old 07-29-2010, 04:37 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 6
smaramba is on a distinguished road
Default

Quote:
Originally Posted by kapps11 View Post
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....
smaramba is offline   Reply With Quote
Old 07-29-2010, 04:40 AM   #4 (permalink)
Registered Member
 
Join Date: Jul 2010
Location: Enschede, Netherlands
Posts: 198
rickrets is on a distinguished road
Default

Does every cell get the "add me" option?
rickrets is offline   Reply With Quote
Old 07-29-2010, 04:52 AM   #5 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 6
smaramba is on a distinguished road
Default

Quote:
Originally Posted by rickrets View Post
Does every cell get the "add me" option?
...Schermata 2010-07-29 a 11.49.08.jpg

Like this..(thats a sample)
smaramba is offline   Reply With Quote
Old 07-29-2010, 05:02 AM   #6 (permalink)
Registered Member
 
Join Date: Jul 2010
Location: Enschede, Netherlands
Posts: 198
rickrets is on a distinguished road
Default

It seems I can't view that sample
If you wan't complete control over your cells, take a look at creating custom cell..
rickrets is offline   Reply With Quote
Old 07-29-2010, 05:32 AM   #7 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 6
smaramba is on a distinguished road
Default

Quote:
Originally Posted by rickrets View Post
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
smaramba is offline   Reply With Quote
Old 08-05-2010, 07:20 AM   #8 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 6
smaramba is on a distinguished road
Default

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.
smaramba 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
» 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
Powered by vBadvanced CMPS v3.1.0

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