问题描述
我想知道如何定制这样的UIActionSheet:
I'm wondering how I might go about customizing a UIActionSheet like this one:
当您按下按钮以显示此视图时,它的确像UIActionSheet一样出现,但是老实说,我不确定他们是否使用了包含两个按钮的UIView而不使用某种自定义动画.有人可以说我该怎么做吗?
When you press on the button to bring this view up, it does come up like a UIActionSheet but honestly I'm not quite sure that they aren't using some kind of custom animation with a UIView containing two buttons. Could anybody speak to how I might go about doing this?
推荐答案
为此,您必须制作自定义的 UIActionsheet
.您可以通过制作 UIView
并通过动画将其显示出来(如果您不想做更多的事情并采取简单的方法)来完成此操作,否则您也可以查阅此控件,同时查看界面是否要制作的是适用于iOS 7的:- UI7Kit
Well for this you would have to make your custom UIActionsheet
. You can do this by either making a UIView
and bringing it up by animation (if you want to do no more and take an easy way out) or else you can consult this control also seeing that the interface you want to make is for iOS 7 :-UI7Kit
此控件包含所有UI7控件功能,您可以将它们添加到项目中,也可以根据自己的想法来构建自己的.希望这可以帮助 !!:)
This control includes all the UI7 control features that you can either add to your project or take an idea and build your own . Hope this helps !! :)
好吧,您可以看一下这些链接,以制作自定义的 UIActionsheet
,它们是您所提到的教程.....请窥视一下:-
Well you could take a look at these links for making a custom UIActionsheet
, they are tutorials like you mentioned..... please have a peek :-
https://www.altamiracorp.com/blog/employee-posts/display-a-custom-uiview-like-a
http://blog.corywiles.com/custom-uiactionsheet-using-核心动画
使用块也有很好的控制!:-带块的UIActionsheet
And there's this great control too using blocks !! :- UIActionsheet With Blocks
这篇关于自定义UIActionSheet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!