开发者

How to release NSString?

开发者 https://www.devze.com 2023-03-12 19:57 出处:网络
How do we release NSString that is not alloc or evern other objects? Example: NSString *test = @\"testing\";

How do we release NSString that is not alloc or evern other objects?

Example:

NSString *test = @"testing";

Thanks f开发者_Python百科or your help.


You don't. You just release the objects you own. You own the object if you used alloc, copy or new keywords when instantiating them.

0

精彩评论

暂无评论...
验证码 换一张
取 消