开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜