ios - Getting the path of an ALAsset -


how can path of each item in array of alassets?

i images can add them email

e.g.

nsstring *path = [[nsbundle mainbundle] pathforresource:@"sample" oftype:@"png"]; nsdata *mydata = [nsdata datawithcontentsoffile:path]; [mailviewcontroller addattachmentdata:mydata mimetype:@"image/png" filename:@"sample"]; 

how can done?

assuming have access array of alasset objects, can retrieve url this:

someasset.defaultrepresentation.url


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -