Closed delebedev closed 10 years ago
In my project I use -[UIView accessibilityLabel] for ui testing. But, unfortunately, I cannot set the label for alertView buttons.
I see two possible solutions:
@property (nonatomic, readonly) NSArray *buttons
- (void)addButton...
What do you think?
@garnett
I take your suggestion to move buttons to the class interface. You should able to access CXAlertButtonItem now. I hope this is useful for you. Thanks.
CXAlertButtonItem
In my project I use -[UIView accessibilityLabel] for ui testing. But, unfortunately, I cannot set the label for alertView buttons.
I see two possible solutions:
@property (nonatomic, readonly) NSArray *buttons
to the class interface.- (void)addButton...
to- (void)addButton...
. But default button options will be still unavailable.What do you think?