相关疑难解决方法(0)

在快速枚举中跟踪索引

我想在使用快速枚举时得到当前对象的索引,即

for (MyClass *entry in savedArray) {
// What is the index of |entry| in |savedArray|?
}
Run Code Online (Sandbox Code Playgroud)

cocoa-touch objective-c fast-enumeration

28
推荐指数
3
解决办法
1万
查看次数