What is the maximum value of NSInteger?

后端 未结 4 1840
萌比男神i
萌比男神i 2020-12-09 01:35

I need to store the maximum value of an NSInteger into an NSInteger? What is the correct syntax to do it?

Thanks.

4条回答
  •  Happy的楠姐
    2020-12-09 02:21

    The maximum value for an NSInteger is NSIntegerMax

    (from Foundation Constants Reference)

提交回复
热议问题