If I declare instance variables and objects in my header between brackets with “IBOutlet” in front of them, do I have to set the objects properties?
Also does this mean they are private? What does it mean for them to BE private???
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No,It is not necessary to set properties for IBOutlets, Just declaring them would be enough
for eg:
If you want the variables to be private then you will have to declare it in this form
Instance variables declared as private in a class can be accessed only by an instance of the class.