• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Image preview with UIWebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image preview with UIWebView


  • Subject: Re: Image preview with UIWebView
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 26 Jan 2011 08:15:11 -0800

On Jan 26, 2011, at 3:16 AM, Leon Qiao <email@hidden> wrote:

> Hi Kyle,
>
> Thanks for your advise. I found the UIImage really wraps something that can be used to read the raw image file. Maybe I need to check the file extension and provide a UIImageView.

Yes, UIImage wraps CGImage. This is why I gave you ideas for creating a CGImage and then wrapping it with a UIImage.

The documentation doesn't say that you can create a UIImage directly from anything other than a very few formats.  The documentation could very well be out of date; UIImage might now use ImageIO to read the vast swath of formats supported by that framework. If that is the case, +[UIImage imageWithContentsOfFile:] might work for your needs.

--Kyle Sluder_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Image preview with UIWebView (From: Leon Qiao <email@hidden>)
 >Re: Image preview with UIWebView (From: Kyle Sluder <email@hidden>)
 >Re: Image preview with UIWebView (From: Leon Qiao <email@hidden>)

  • Prev by Date: Redisplaying a NSTableColumn NSTableHeaderCell
  • Next by Date: Cocoa based Data Model dilemna
  • Previous by thread: Re: Image preview with UIWebView
  • Next by thread: Re: Image preview with UIWebView
  • Index(es):
    • Date
    • Thread