I\'m making a UITableView
with expandable/collapsable cells for ios app. I put a UITableViewCellAccessoryDisclosureIndicator
on these cells but I\'
This is not exactly what you want, but this the first thing I thought of. First, instantiate a button of type UIButtonTypeDetailDisclosure:
UIButton *button = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
Next, rotate the button 90 degrees:
CGAffineTransform rotationTransform = CGAffineTransformIdentity;
rotationTransform = CGAffineTransformRotate(rotationTransform, DegreesToRadians(90));
button.transform = rotationTransform;
Finally, use the button as the accessoryView:
cell.accessoryView = button;
Hope that helps.