My goal is to create a Segment control with two rows.
Here is an image to paint a picture of my words.
I've tried viewing the properties of the UISegmentControl and I thought there would something likes rows or lines, but I can't seem to find anything of the sort. Is this in the scope of a SegmentControl, or is this something that I would have to do in a custom view?
I looked through OBJ C code, but I'm slightly confused as to what he is doing.
[_segmentedControl.subviews enumerateObjectsUsingBlock:^(UIView * obj, NSUInteger idx, BOOL *stop) {
[obj.subviews enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
if ([obj isKindOfClass:[UILabel class]]) {
UILabel *_tempLabel = (UILabel *)obj;
[_tempLabel setNumberOfLines:0];
}
}];
}];
I don't see anything called enumerateObjectsusingBlock, or setNumberOfLines as properties of Segmentcontrol.