• 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: saving images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: saving images


  • Subject: Re: saving images
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 23 Jul 2012 10:08:48 -0700

On Sat, 21 Jul 2012 17:03:23 +0100, "H. Miersch" <email@hidden> said:
>
>i just started a new ios project where i want to download images using NSimage's initwithcontentsofURL: method.
>now i also want to write those images to permanent storage, but how do i do that?

(1) There is no NSImage on iOS.

(2) Do not neglect the Image I/O framework:

http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/ImageIOGuide/imageio_intro/ikpg_intro.html

Some sample code (from my book) here:

https://github.com/mattneub/Programming-iOS-Book-Examples/blob/master/ch36p912imageIO/p747p766imageIO/ViewController.m

m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
_______________________________________________

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

  • Prev by Date: Re: Icon Overlay on Mac OSX
  • Next by Date: Re: NSDocument -canCloseDocumentWithDelegate::: not called when terminating
  • Previous by thread: Re: saving images
  • Next by thread: Given NSString containing a letter like Ç, how do I convert that to a C?
  • Index(es):
    • Date
    • Thread