objective c - I am missing a step when writing code to retrieve IOS assetLibrary, but what am I missing? -


here part of code:

//filter photos photoarray = [self getcontentfrom:group withassetfilter:[alassetsfilter allphotos]]; //enumerate through group access photos.  [contentdictionary setobject:photoarray forkey:@"photos"];  //filter videos  videoarray = [self getcontentfrom:group withassetfilter:[alassetsfilter allvideos]]; [contentdictionary setobject:videoarray forkey:@"videos"]; 

i assume simple solution. couldn't find answer in apple's objective-c handbook.

some context info: adding feature ipad program lets users import media photos app. here 4 errors below. thanks

no visible @interface 'viewcontroller' declares selector 'getcontentfrom:withassetfilter:

no visible @interface 'nsdictionary' declares selector 'setobject:forkey:'

no visible @interface 'viewcontroller' declares selector 'getcontentfrom:withassetfilter:'

no visible @interface 'nsdictionary' declares selector 'setobject:forkey:'

and above each error reads "arc semantic issue".

the methods you're trying call don't exist. if want add object dictionary after initializing you'll need use nsmutabledictionary instead.

as other one, trying call getcontentfrom:withassetfilter: on viewcontroller class. method not exist. must have copy/pasted code somewhere , left out piece. nothing else here can since have no idea supposed inside method.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -