Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iphone-从下面列出按钮列表_Iphone_Xcode - Fatal编程技术网

iphone-从下面列出按钮列表

iphone-从下面列出按钮列表,iphone,xcode,Iphone,Xcode,我会添加一个下拉列表,列出从下方出现/消失的按钮,如本机iphone中的“共享按钮”。我该怎么做 提前感谢。共享视图是UIActivityController对象,您只能使用它进行共享等 最好的方法是创建一个自定义UIView并将按钮放在其中。然后在屏幕的可见部分设置动画,然后再将其移出。如果你需要一个简单的代码示例,请告诉我 更新: // Create your UIView and connect in your storyboard/XIB UIView *myView = [[UIVie

我会添加一个下拉列表,列出从下方出现/消失的按钮,如本机iphone中的“共享按钮”。我该怎么做


提前感谢。

共享视图是UIActivityController对象,您只能使用它进行共享等

最好的方法是创建一个自定义UIView并将按钮放在其中。然后在屏幕的可见部分设置动画,然后再将其移出。如果你需要一个简单的代码示例,请告诉我

更新:

// Create your UIView and connect in your storyboard/XIB
UIView *myView = [[UIView alloc] init];

// Add the UIButtons to your UIView
UIButton *button = [[UIButton alloc] init];
[myView addSubview:button];

// Animate the UIView that contains the buttons
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.15];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
myView.frame = CGRectMake(0, 740, 768, 264);
[UIView commitAnimations];