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
Post a Comment