Size of an NSArray

后端 未结 5 649
广开言路
广开言路 2021-02-01 12:48

How do you get the size of an NSArray and print it in the console using NSLog?

5条回答
  •  悲&欢浪女
    2021-02-01 13:04

    Take a look at this post for your array size question

    Length of an Array in Objective C

    Use NSLog to write to the console...

    NSLog(@"The array size is %@", arraySize);
    

提交回复
热议问题