IOS学习之UIActionSheet的使用
<div id="cnblogs_post_body">UIActionSheet是在IOS弹出的选择按钮项,可以添加多项,并为每项添加点击事件。为了快速完成这例子,我们打开Xcode 4.3.2, 先建立一个single view application。然后再xib文件添加一个button,用来弹出sheet view。
1、首先在.h文件中实现协议,加代码的地方在@interface那行的最后添加<UIActionSheetDelegate>,协议相当于java里的接口,实现协议里的方法。
<div class="cnblogs_code">@interface sheetviewViewController : UIViewController<UIActionSheetDelegate>@end
页:
[1]