Quantcast
Channel: Developer Feed - Snippet
Viewing all articles
Browse latest Browse all 178

How to load image from PhotoGallery into a CCSprite?

$
0
0

Sinppet

The Asset Library is used here, so add import.

#import "AssetsLibrary/AssetsLibrary.h"

 

  CCSprite *playPhoto;

  CCLOG(@"Photo %@",dataManager.playerPhoto);

// check if the URL is an asset URL from the Photo Gallery.

read more


Viewing all articles
Browse latest Browse all 178

Trending Articles