Do I need to release NSString generated using @“…”?

前端 未结 6 603
既然无缘
既然无缘 2020-12-03 10:52

If I make an NSString using the code below, do I need to need to release someString?

NSString *someString = @\"somestring\";
6条回答
  •  难免孤独
    2020-12-03 11:31

    No, since it's a compile-time constant string, you do not need to release it. In fact, doing so will likely cause a run-time error.

提交回复
热议问题