OC fragmented small problem

NSArray NSArray stored attributes are immutable, taken out from the inside despite the array assigned to the NSMuilteArray, but not subsequent addObject, because the array is taken out valueForKey immutable. You should use [NSMutableArray arrayWithArray].

 

A class attribute to the outside world are declared in the .h file.

 

Network access time, there may need to be transcoded:

         tempAddress = [tempAddress stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet characterSetWithCharactersInString:@"#%^{}\"[]|\\<> "].invertedSet];

 

Variable single mode globally to be able to declare and initialize a class in it, as a temporary variable value.

Guess you like

Origin www.cnblogs.com/JMarshall/p/11420411.html