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 04-12-2009, 05:13 PM   #1 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 26
iPhoneGuy is an unknown quantity at this point
Default imageView in Cell in 3.0

I am having an issue setting the imageView of a tableCell. It keeps telling me that it is a read only value. But everything 2.0 has been deprecated.

cell.imageView = [UIImage imageWithDataNSData *)ABPersonCopyImageData(person)];

This should put in the users image from the AB but any image in there would be great...
iPhoneGuy is offline   Reply With Quote
Old 04-12-2009, 07:44 PM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 26
iPhoneGuy is an unknown quantity at this point
Default

Got that part fixed, however, the image is huge.

How do I reduce the image size to be that of the default imageView in a cell?
iPhoneGuy is offline   Reply With Quote
Old 04-26-2009, 10:58 AM   #3 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
Join Date: Oct 2008
Posts: 10
brandon0104 is on a distinguished road
Default

Quote:
Originally Posted by iPhoneGuy View Post
Got that part fixed, however, the image is huge.

How do I reduce the image size to be that of the default imageView in a cell?

To reduce the size of the image, try this. http://www.iphonedevsdk.com/forum/ip...h-quality.html
brandon0104 is offline   Reply With Quote
Old 06-24-2009, 11:24 AM   #4 (permalink)
New Member
 
Join Date: May 2009
Posts: 18
SirPoonga is on a distinguished road
Default

Does one have to use that method to resize an image for a table cell?

I am making a table that lists recent blogs on a website I visit. Just adding the user's avatar to table cell imageview works but the avatar isn't sized to the cell's height.

I tried using the function from the resizing thread, however, many images it doesn't like but some it does. I get errors like
CGBitmapContextCreate: unsupported parameter combination: 8 integer bits/component; 32 bits/pixel; 3-component colorspace; kCGImageAlphaLast; 80 bytes/row.
CGContextDrawImage: invalid context
CGBitmapContextCreateImage: invalid context
CGBitmapContextCreate: unsupported colorspace.

I also tried drawInRec and it spits out those errors.

Last edited by SirPoonga; 06-24-2009 at 11:39 AM.
SirPoonga is offline   Reply With Quote
Old 09-13-2010, 05:15 PM   #5 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 2
smallduck is on a distinguished road
Default

Quote:
Originally Posted by SirPoonga View Post
I tried using the function from the resizing thread, however, many images it doesn't like but some it does. I get errors like
CGBitmapContextCreate: unsupported parameter combination: 8 integer bits/component; 32 bits/pixel; 3-component colorspace; kCGImageAlphaLast; 80 bytes/row.
CGContextDrawImage: invalid context
CGBitmapContextCreateImage: invalid context
CGBitmapContextCreate: unsupported colorspace.
Apple developer Q&A 1037 says CGBitmapContextCreate doesn't support kCGImageAlphaLast, but instead only kCGImageAlphaPremultipliedLast. Change the relavent bits in the CGBitmapInfo from kCGImageAlphaLast to kCGImageAlphaNoneSkipLast, essentially losing the alpha, or update your images if you can.

Last edited by smallduck; 09-13-2010 at 05:35 PM.
smallduck 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: 328
7 members and 321 guests
blueorb, guusleijsten, jbro, Kryckter, LEARN2MAKE, n00b, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,880
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 08:58 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0