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