Closed larryonoff closed 8 years ago
Good point. My assumptions is that since the method initWithTitle:message:cancelButtonTitle: is a part of the CXAlertView. It would be complete to have customisation as a part of the CXAlertView.
Um. Actually the whole concept of this component is to allow anyone to add custom view on the alertView, thus I won't add features for that in case of losing the basic principle.
Up to you.
By the way initWithTitle:message:cancelButtonTitle: uses private method heightWithText:font. So h file doesn't describe available API entirely. So the control can be used properly only after analysis of m file.
As you can see there is just a label in the alertView, so you can create you own label and make it at the contentView at alertView with
- (id)initWithTitle:(NSString *)title contentView:(UIView *)contentView cancelButtonTitle:(NSString *)cancelButtonTitle;