Action Sheet 为什么我在头文件中声明一个方法用来载入Action Sheet,在Iterface Builder中看不到Action,我保存了的。代码如下:-(IBAction) loadActionSheet;#import <UIKit/UIKit.h>@interface FirstTabView : UIViewController <UIActionSheetDelegate> {}-(IBAction) loadActionSheet;@end 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在头文件里面添加了 -(IBAction) loadActionSheet;要重新编译才能在IB里面看到 在IB中你是看不到UIActionSheet实例的你的 -(IBAction) loadActionSheet;是给IB看的一个动作。需要在IB中添加一个控件并关联此动作并在你的 -(IBAction) loadActionSheet { UIActionSheet *sheet=[[UIActionSheet alloc] initWithTitle:@"test" .... .... ]; [sheet showInView:self.view]; } Cannot run on the selected destination 读取gb18030txt文件 ,无法显示 求用 iPhone 的 sqlite 数据库读取本地图片Demo java开发与iphone开发的一些问题 关于cocos2d-x c++ char 赋值前后长度不一样 UIPickerView 如何在iOS7中也显示为iOS7之前的立体效果 iOS 加密 做的APP,大家支持一下 关于支付宝回调处理 证书覆盖如何操作 xcode 屏幕触摸事件 求xcode interface Builder iphone 模拟器 下载链接
你的 -(IBAction) loadActionSheet;是给IB看的一个动作。需要在IB中添加一个控件并关联此动作
并在你的 -(IBAction) loadActionSheet {
UIActionSheet *sheet=[[UIActionSheet alloc]
initWithTitle:@"test" .... .... ];
[sheet showInView:self.view];
}