开发者

access a variable from another class iphone development

开发者 https://www.devze.com 2023-01-12 03:31 出处:网络
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 yo

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

精彩评论

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