开发者

When Debugging in Xcode what does "out of scope" mean?

开发者 https://www.devze.com 2023-01-03 13:29 出处:网络
I\'m in xcode debugging my iphone application.when i get to a break point and I roll over my object and properties of that object say \"out of scope\" instead of their respective values.

I'm in xcode debugging my iphone application. when i get to a break point and I roll over my object and properties of that object say "out of scope" instead of their respective values.

Here's what I do:

I have inited a view with nib name (initwithnibname).

Then se开发者_JAVA百科t the property of that view to the object that I want.

I have placed the breakpoint in the viewwillappear method.

I rollover my reference to the variable that was is my property.

All properties in the object say "out of scope"

Does anyone know why this is happening?


Not used XCode either, but it sounds like you're using a variable that is not in scope - say referring to a local variable in a method from another method etc...

Find where the variable is declared - that should give you a big clue...


These are released objects.


You said that you "set the property of the view to the object that I want".

Could you clarify on this, did you mean you set the nib file File's Owner to your View Controller class?

What specific errors did you receive in the console?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号