What is the maximum length of an NSString object?

前端 未结 3 606
有刺的猬
有刺的猬 2020-11-29 08:22

What is the maximum sized string that can be held in a NSString object?

Does this change dynamically?

3条回答
  •  不知归路
    2020-11-29 08:40

    It can hold almost as much memory as can be represented by virtual memory system. But I personally feel the maximum length is only restricted to whatever memory available at that time.

提交回复
热议问题