Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想UIViewController从 a执行 aUIActionSheet我的意思是我有一个UIActionSheet带有三个按钮的按钮,其中一个按钮我想执行 a UIViewController。
UIViewController
UIActionSheet
有可能吗?如何?
最好的问候, Oriol
看一下UIActionSheetDelegate协议参考:
UIActionSheetDelegate
http://developer.apple.com/library/ios/DOCUMENTATION/UIKit/Reference/UIModalViewDelegate_Protocol/UIActionSheetDelegate/UIActionSheetDelegate.html#//apple_ref/doc/uid/TP40006799
您将要实现该方法并从那里actionSheet:didDismissWithButtonIndex:推送您的方法。UIViewController
actionSheet:didDismissWithButtonIndex: