access a variable from another class iphone development
Is there a way to access the value of a variable of another class in t开发者_JS百科he iphone whithout using the delegate?
you should be able to access the variable if you write a getter method or if you synthesize the variable in the implementation.
See listing 5.2 in this document from Apple for an example. http://developer.apple.com/mac/library/iPad/index.html#documentation/Cocoa/Conceptual/ObjectiveC/Articles/ocProperties.html
精彩评论