我想知道是否有一个特定的UI类可以让用户做出选择,比如safari上的"More“按钮或者确认iDevice关闭的界面。两者看起来都很像UIToolBars,但它们看起来渲染得很好(按钮和工具栏背景),以至于我开始怀疑它是专门为这样的滑块选项设计的一个单独的类。
或者它们实际上是不同的动画设计的背景,使用animateWithDuration: UIViews :动画:并且背景是半透明的蒙版?苹果是怎么做到的?
发布于 2013-07-17 19:36:49
UIActionSheet。代码如下:
UIActionSheet *actionSheet = [[UIActionSheet alloc]initWithTitle:@"Share" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"E-Mail",@"SMS", nil];
[actionSheet showInView:self.view]; 发布于 2013-07-17 19:17:49
我想你要找的是一个action sheet

发布于 2013-07-17 19:18:03
你是说UIActionSheet?如果是这样的话,它是UIView下的一个单独的类!
UIActionSheet
https://stackoverflow.com/questions/17698249
复制相似问题