1

Is there a way to access the value of a variable of another class in the iphone whithout using the delegate?

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

did that but it returns null when called by another class

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.