关于NSString的retainCount的各类结果缘由

1. 字符串常量html NSString *s = @"test";ide NSLog(@"s:%d",[s retainCount]); // -1或2147483647(即UINT_MAX ( Maximum value an `unsigned int'))post 由于"test"为字符串常量,系统不会收回,也不会对其做引用计数,即便咱们对s如何retain或release。orm  
相关文章
相关标签/搜索