xcode - Cocos2d Add photo from iphone photo album -
i want add sprite using photo file of iphone. there simple way so? cocos2d support file system. there method photo file.
if format of data cocos receive.
you can uiimage using uiimagepickercontroller.
then can create ccsprite using following code.
ccsprite *myspritefromimage = [ccsprite spritewithcgimage:[mypickerimage cgimage] key:@"pickerimage"];
Comments
Post a Comment