本文介绍了如何把按钮列表按钮时$ P $在iOS应用pssed的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道该怎么寻找,或它叫什么,因为我是全新的。请帮助我,当我preSS按钮会显示其他按钮。我们发现它在很多应用程序,但我不知道这个名字。我在下面所附的图片。我怎样才能做到这一点的iOS应用程序。

I don't know what to search for or what it is called, as I am totally new. Please help me that when I press button it will show other button. We found it in lot of apps, but I don't know the name.. I attached its picture below. How can I do this in an iOS app.

推荐答案

正所谓 UIActionSheet

这是一个复杂的评估者例如:

And here is a rater complex example:

    UIActionSheet *actionSheet = [[UIActionSheet alloc] init] ;
    actionSheet.title = @"Change pincode?";
    actionSheet.delegate = self;
    actionSheet.tag = kChangePincode;

    [actionSheet addButtonWithTitle:@"Chacge pincode"];
    [actionSheet addButtonWithTitle:@"Remove pin code"];

    [actionSheet addButtonWithTitle:@"cancel"];
    [actionSheet setCancelButtonIndex:(actionSheet.numberOfButtons - 1)];

    [actionSheet showInView:self.view];

这篇关于如何把按钮列表按钮时$ P $在iOS应用pssed的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 21:45