Articles Tagged 'NSData'

Very short snippet: a series of images stored in NSUserDefaults

ai dati dell'immagine. To store an image in NSUserDefaults is sufficient to be able to get a pointer NSData image data. In this way we could rebuild our image at any time thereafter.

In the example shown below is used an array that contains a maximum of 4 images. Each new image is put on the head and the excess removed.

Continued ...

Very short snippet: streaming mp3 files on the Apple iPhone

An alternative very simple to run a stream a mp3 file on the Apple iPhone could be:

Continued ...