How to customise the Button on UIActionSheet?
Asked Answered
C

2

2

I want to change width & height, etc. of the button of UIActionSheet

UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:@**"Done"**,nil];
Copolymerize answered 7/12, 2009 at 7:2 Comment(0)
D
2

I would suggest against doing this. The button sizes and shapes in a UIActionSheet are designed the way they are for accessibility reasons. They are also consistent across all applications on the platform, so users are familiar with them. From the iPhone Human Interface Guidelines:

Because users are accustomed to the appearance and behavior of these views, it’s important to use them consistently and correctly in your application.

If you change these sizes, not only might you make your application less usable, but that may violate Apple's Human Interface Guidelines, leading to a rejection of your application when submitted.

Diminished answered 7/12, 2009 at 14:4 Comment(0)
O
0

You can create your own actionsheet analog.

Olid answered 7/12, 2009 at 7:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.