以编程方式ActionSheet的按钮 [英] programmatically ActionSheet's Buttons

查看:79
本文介绍了以编程方式ActionSheet的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一些以下指导:


  • 我有一个ActionSheet。当它出现时,它会显示带有两个按钮的自定义视图。

  • 使用xib从另一个(.h / .m)文件调用View。

  • 如何在其中一个按钮上设置取消事件。按钮被添加到视图中而不是在ActionSheet中。

  • 或者如何以编程方式在ActionSheet上添加按钮?

  • I have an ActionSheet. When it appears it shows my custom view with two buttons.
  • The View is called from another (.h/.m)file using xib.
  • How can I set cancel event on one of the button. Buttons are added into view not in ActionSheet.
  • OR How can I put buttons on ActionSheet programmatically ?

谢谢...

推荐答案

这是链接到你的答案。

你也可以参考 UIActionsheet的类参考,以获取与行动表相关的所有解决方案。

Also you can refere the Class Reference for UIActionsheet to get all the solutions related to action sheet.

这篇关于以编程方式ActionSheet的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆