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 09-07-2008, 10:11 AM   #26 (permalink)
Registered Member
 
Stitch's Avatar
 
Join Date: Aug 2008
Posts: 400
Stitch is on a distinguished road
Default

You're drawing into a UIView therefore you can put anything you want in there.

If I were you I would forget about cells and just use images. Make an image that looks like the cell and addSubview with a CGRect.

If you notice in my example I pass the viewController to the UIView so that I can like back to it from the UIView.

My button in the view calls target:self.viewController

This calls a function in the viewController which then performs a pushViewController animated:YES command so it gives the impression that it's a cell.

Hope this makes sense.
Stitch is offline   Reply With Quote
Old 09-07-2008, 10:23 AM   #27 (permalink)
ash
Ashar
 
Join Date: Aug 2008
Posts: 54
ash is on a distinguished road
Default

Yeah it does and i think it would serve my purpose for the POC im making.

**[UIColor groupTableViewBackgroundColor] --> This i didnt know and might solve a lot of my problems.

Thanks a bunch Stitch.
ash is offline   Reply With Quote
Old 09-08-2008, 03:35 AM   #28 (permalink)
ash
Ashar
 
Join Date: Aug 2008
Posts: 54
ash is on a distinguished road
Default

Hey Stitch,

Ok i've done it using the above method, however i still believe there should be a proper way of doing it.


Thanks
Ashar
ash is offline   Reply With Quote
Old 09-08-2008, 07:08 AM   #29 (permalink)
Registered Member
 
Stitch's Avatar
 
Join Date: Aug 2008
Posts: 400
Stitch is on a distinguished road
Default

Cool. This is just how I achieved it.

Please post back here if you find another way.

Thanks,
Stitch.
Stitch is offline   Reply With Quote
Old 09-08-2008, 08:21 AM   #30 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 31
bergetun is on a distinguished road
Default

Any reason for not using ABPersonViewController or ABUnknownUserViewController instead of making it from scratch ?
bergetun is offline   Reply With Quote
Old 09-08-2008, 08:37 AM   #31 (permalink)
Registered Member
 
Stitch's Avatar
 
Join Date: Aug 2008
Posts: 400
Stitch is on a distinguished road
Default

I cannot speak for Ash but I just wanted the "look" of this screen. My app has nothing to do with contacts in the iPhone.
Stitch is offline   Reply With Quote
Old 09-08-2008, 11:36 PM   #32 (permalink)
ash
Ashar
 
Join Date: Aug 2008
Posts: 54
ash is on a distinguished road
Default

Yeah same here, nothing to do with contacts. Might work for the Name.. but i need to show some additional information as well.

Btw Stitch, i just had a thought.. Since we are placing a view at the table header why not place a TableView with one cell on the right and an image view on the left. I think this might work. THoughts?

Thanks
ash is offline   Reply With Quote
Old 09-09-2008, 12:18 AM   #33 (permalink)
Registered Member
 
Stitch's Avatar
 
Join Date: Aug 2008
Posts: 400
Stitch is on a distinguished road
Default

Hey Ash,

I'm not sure that would work. I've never placed a TableView in anything other than a ViewController. If you can do this then maybe it would work.

The key for my app looking right was getting the image to change to a "pressed" look when the user clicks on it - this way it looks and acts just like a normal table view cell.

I probably will play with this a little more when I have some spare time.

Thanks,
Stitch.
__________________
BUZZER! : iTunes Library Music Quiz (1 or 2 Player)
Stitch is offline   Reply With Quote
Old 07-18-2009, 05:02 AM   #34 (permalink)
New Member
 
Join Date: Jul 2009
Posts: 2
k0ry is on a distinguished road
Default

About image from the left - try to use UIButton, something like this:
photoButton = [[[UIButton alloc] initWithFrame:CGRectMake(20, 0, 64, 84)] retain];
photoButton.backgroundColor = [UIColor clearColor];
[photoButton setImage:[UIImage imageNamed:@"image.png"] forState:UIControlStateNormal] ;
[cell0 addSubviewhotoButton];
k0ry is offline   Reply With Quote
Reply

Bookmarks

Tags
add, cell, contact, table, tableviewcell

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: 326
11 members and 315 guests
givensur, glenn_sayers, guusleijsten, ipodphone, jbro, mediaspree, mottdog, mtl_tech_guy, Punkjumper, vilisei, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,114
Posts: 402,883
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

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