
Here, I have pointed to the Referencing Outlet Collection. I am not able to figure out its usage in XCode4.
I am asking for the `new feature of REFERENCING OUTLET COLLECTION in InterfaceBuilder of XCode4″.
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.
The
IBOutletCollectionis a way to groupIBOutlets. Imagine that you have 3 or 4UILabels, on which you will apply a style (font, backgroundColour, opacity, etc). With aIBOutletCollection, it becomes trivial to do this. First you need to define yourIBOutletCollection:(notice the type we are putting inside parenthesis, although we could put an
id, if we had a mix collection)Connect the
IBoutletson Interface Builder and then just iterate it:Hope this helps you understand:
http://useyourloaf.com/blog/2011/3/28/interface-builder-outlet-collections.html