下面是我的.h代码
@interface ROSettingViewController : UITableViewController
{
UISwitch *switchCtl;
UISwitch *switchCtl1;
NSArray *dataSourceArray;
}
@property (nonatomic, retain, readonly) UISwitch *switchCtl;
@property (nonatomic, retain, readonly) UISwitch *switchCtl1;
@property (nonatomic, retain) NSArray *dataSourceArray;
- (void)dialogOKCancelAction;
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex;
@end
/Users/ragopor/Desktop/Power Spot beta 2/code/Classes/ROSettingViewController.m:321: warning: class 'ROSettingViewController' does not implement the 'UIActionSheetDelegate' protocol发布于 2010-06-17 12:26:13
您是否尝试过声明您的控制器遵守UIActionSheetDelegate协议?
@interface ROSettingViewController : UITableViewController<UIActionSheetDelegate>
发布于 2010-06-17 12:30:42
你很可能会说,在ROSettingViewController.m:321上,
myActionSheet.delegate = self;而没有指定您的VC实现UIActionSheetDelegate协议
https://stackoverflow.com/questions/3058826
复制相似问题