作者:手机用户2502923697 | 来源:互联网 | 2023-08-12 18:44
LetssayIcreateanarray:假设我创建了一个数组:NSArray*newArray[NSArrayarrayWithObjects:@foo,@ba
Let's say I create an array:
假设我创建了一个数组:
NSArray *newArray = [NSArray arrayWithObjects:@"foo", @"bar", @"sdfsf", nil];
In Xcode, when I stop at a breakpoint and inspect newArray
I see that it says "3 Objects", yet when I click the disclosure triangle all I see is one NSObject
and there seems to be no way to see what that array contains.
在Xcode中,当我在断点处停下并检查newArray时,我看到它显示“3个对象”,但当我点击显示三角形时,我看到的只是一个NSObject,似乎无法看到该数组包含的内容。
In practice I am working with an array of custom objects and it is a royal pain to see the nesting or inspect the properties of them.
在实践中,我正在处理一系列自定义对象,看到嵌套或检查它们的属性是一种巨大的痛苦。
Can anyone provide some insight on a better way to use this?
任何人都可以提供一些更好的方法来使用它吗?
2 个解决方案