开发者

Change actions sheet's button size?

开发者 https://www.devze.com 2023-01-14 18:17 出处:网络
can we change button size of actionsheet, say i hv 4 buttons in actionsheet, than it will cover more than half screen with sheet, is there any other way to giv more than 3 buttons without capturing mo

can we change button size of actionsheet, say i hv 4 buttons in actionsheet, than it will cover more than half screen with sheet, is there any other way to giv more than 3 buttons without capturing most of the screen?

开发者_Python百科regards


The API for UIActionSheet does not provide a way of adding your own custom UIButtons. Instead, you might want to look at creating your own custom version UIActionSheet - from scratch. It would be a pretty simple custom UIVIewController with a series of buttons (sized to your liking) and the presentation and dismissal would require a simple animation to slide in and out of view.

0

精彩评论

暂无评论...
验证码 换一张
取 消