Substring requires an "NSArray" interface size that is not constant in unstable ABI

I am trying to send information to the server using ASIHTTPRequest and setting post values ​​like this:

    for(int i = 0;i<13;i++){
  [request setPostValue:propertyValues[i] forKey:propertyKeys[i]]    
}

propertyValues ​​and propertyKeys are both NSArray objects that contain 13 elements each. When I run this, I get the error message "The subtitle requires an interface size of" NSArray, which is not a constant in an unstable ABI "

What does it mean?

+3
source share
4 answers

, NSArray*, , , . x[5] x + sizeof(x) * 5. sizeof - , , 5 . , NSArray Objective C, , . , .

, NSArray. , :

[propertyValues objectAtIndex:i];
+20

NSArray .

[propertyValues objectAtIndex:i]

.

+3

NSArray, objectAtIndex:

for(int i = 0;i<13;i++){
  [request setPostValue:[propertyValues objectAtIndex:i] forKey:[propertyKeys objectAtIndex:i]l    
}
+2

NSArray ( C).

[request setPostValue:[propertyValues objectAtInstance:i] forKey:[propertyKeys objectAtInstance:i]];
+1

All Articles