4.
NSString * myResponseStr = [[NSString alloc]
initWithData:myResponseData encoding:enc];
6。获取界面语言设置
NSUserDefaults* defs = [NSUserDefaults
standardUserDefaults];
NSArray* languages = [defs
objectForKey:@"AppleLanguages"];
NSString* preferredLang = [languages
objectAtIndex:0];
7.对于做为数据 Model 的类来说,让其实现 NSCoding 协议是
个好习惯
it’s just good habit to conform data model classes
to NSCoding.
8
It’s okay to redefine properties to be more
permissive than the
same property as declared in a protocol to which
you’ve conformed, or as declared in
your superclass. You can always redefine a readonly
or writeonly property to be