ios - Adding objects from Parse to array for UITableView Error -


I am trying to populate the UITableView using a recovered object from the pars.
Items are corrected properly, when I try and use my _appliances for my I get: NSArray

'NSInvalidArgumentException', reason: '- [__ NSCFString count]: sent to non-recognized selector example

Console My _appliances The array prints :

  014-07-27 18:24: 16.249 mip [15839: 60b] fan 2014-07-27 18:24: 16.249 mip [ 15839: 60b] Kettle 2014-07-27 18:24: 16.250 mip [15839: 60b] projector  

Viewedload:

  PFQuery * queryApplianceClass = [PFQF query: with classname: @ "saved exception"]; [Query appsclose select key: @ [@ "tool"]]; [Query appeals class order bypassing: @ "updatedAet"]; QueryApplianceClass.limit = 100; [QueryApplianceClass findObjectsInBackgroundWithBlock: ^ (NSArray * applianceObjects, NSError * error) {PFObject * applianceList in applianceObjects} {NSLog (@ "% @", applianceList [@ "Tools"]) for {if (! // Use tool tool from // tool for the above console _appliances = applianceList [@ "device"]; }} And {NSLog (@ "Error:% @% @", error, [error user information]); }}];    

You NSString value _appliance Array variables I believe you are:

  [queryApplianceClass findObjectsInBackgroundWithBlock: ^ (NSArray * applianceObjects, NSError * error) {if (applianceObjects) {NSMutableArray * devices = [NSMutableArray array] ; (For applianceObjects in PFObject * applianceList) {NSLog (@ "% @", Device List [@ "Tools"]); // To console from above print / databases, tool tools [addObject: appliancelist [@ "tool"]]; } _appliances = Tools; } And {nslog (@ "error:% @% @", error, [error user information]); }}];  

Also keep in mind that you should only check error if device object is zero .


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -