objective c 2.0 - Returning an Array Of ImageViews (IPhone)? -
i understand that:
(nsarray *)methodname return array.
(uiimageview *)methodname return imageview.
but how if wanted return array of imageviews?
if you're worried not being clear fact array has uiimageviews, can specify on name of method, like:
-(nsarray *)imageviewsforsomething:(id)something;
otherwise, there's no reason you'd need return explicitly array of uiimageviews, nsarray trick.
Comments
Post a Comment