I understand that:
-
(NSArray *)methodName
would return an array. -
(UIImageView *)methodName
would return an imageview.
But how about if I wanted to return an Array of ImageViews?
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.
If you’re worried about it not being very clear about the fact that the array has UIImageViews, you can specify it on the name of the method, something like:
Otherwise, there’s no reason you’d need to return explicitly an array of UIImageViews, an NSArray will do the trick.