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

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.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 01-09-2010, 03:57 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Location: Baton Rouge, LA
Posts: 131
Default reproduce addressbook contact name view/edit

I am trying to recreate something that the is in the default AddressBook App, the Contact name appears to be a label, but when you hit edit it becomes what appears to be a UITableViewCell. I’m not sure if in “display” mode if it is a label that is then replaced by what appears to be a UItableViewCell, or if its a UItableViewCell with a clear background, that is then set to white to let the user know that the cell is now touch/click able.
My other theory is it could be a new single row table in side the root tables header. Not sure..

I was able to create the name with a label but I’m having a confusing time figuring out how to create the UITableViewCell so its looks like the normal rows when you edit, other wise I get an ugly white banner.

Anyway I’m not real sure how its possible to get the same effect and lookbut i'm looking to reproduce it, not asking for code at this time just clarification whats actually going on.

Thanks
j3rm is offline   Reply With Quote
Old 01-10-2010, 12:53 AM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,129
Default

Total guess:

Header view contains a second table view - single row - offset to the right. They then toggle things like the background color and accessory in response to edit mode.

Also possible: it's a button with 2 labels on top. Button has a custom image designed to mimic table cell.
__________________
BriTer Ideas LLC - Code review, consulting, development. PM for pricing.

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

Are you a newbie? Things you should read:
BrianSlick is offline   Reply With Quote
Old 01-19-2010, 06:26 PM   #3 (permalink)
Registered Member
 
Join Date: Jan 2010
Location: Baton Rouge, LA
Posts: 131
Default Thanks

Thanks Brian,
I almost have it, I just cant figure out where the blasted border setting is
Here is what it look like now.



For reference that is a new TableViewController with 1 cell in the header.

Thanks again.
j3rm is offline   Reply With Quote
Old 01-19-2010, 06:31 PM   #4 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,129
Default

The separator color might control the edges, too. Not sure.
__________________
BriTer Ideas LLC - Code review, consulting, development. PM for pricing.

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

Are you a newbie? Things you should read:
BrianSlick is offline   Reply With Quote
Old 01-20-2010, 02:22 PM   #5 (permalink)
Registered Member
 
Join Date: Jan 2010
Location: Baton Rouge, LA
Posts: 131
Default

Brian, you rock as usual That was it

MyVC.tableView.separatorColor = [UIColor clearColor];

Did the trick!
Thanks again.
j3rm is offline   Reply With Quote
Reply

Bookmarks

Tags
address book, header, uitableview, uitableviewcell

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: 272
20 members and 252 guests
ADY, AragornSG, Bertrand21, Dani77, Dattee, Duncan C, fkmtc, HDshot, HemiMG, iDifferent, JasonR, macquitzon216, mer10, prchn4christ, Rudy, sacha1996, sneaky, spiderguy84, Sunny46, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,231
Posts: 380,768
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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