I'm using NSMutableArray
with object name myArray
: When there is no data from server My mutable array print
In next line of code if check for count it crashes. How to resolve this please help me.
NSLog(@"Print Array : %@", myArray);
if(myArray.count > 0 ){
Excute code
}
Error:
Print Array : 2015-01-24 10:44:59.852 RemoteAccess[1061:60b] -[NSNull count]: unrecognized selector sent to instance 0x38b21a60