Booking.com interview question

How to extract all UILabels in NSArray from given UIView.

Interview Answers

Anonymous

2 Apr 2015

Use recursive method which returns an array

Anonymous

17 June 2015

NSMutableArray *labelsubviews = [[NSMutableArray alloc]init]; for (UILabel *subView in view.subviews) { [labelsubviews addObject:subView]; }

3