iPhone development: How to create colored or translucent background for UIActionSheet?

后端 未结 6 2256
盖世英雄少女心
盖世英雄少女心 2020-11-28 05:58

When you try deleting a note in iPhone\'s Notes application, an UIActionSheet pops up. The sheet is translucent (but not black translucent). How is that achieved? Is it p

6条回答
  •  佛祖请我去吃肉
    2020-11-28 06:40

    You can use the code below:

    actionSheetObj.actionSheetStyle=UIActionSheetStyleBlackOpaque;
    

    or

    actionSheetObj.actionSheetStyle=UIActionSheetStyleBlackTranslucent;
    

提交回复
热议问题