首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何解决有关未实现'UIActionSheetDelegate‘协议的警告

如何解决有关未实现'UIActionSheetDelegate‘协议的警告
EN

Stack Overflow用户
提问于 2010-06-17 12:18:25
回答 2查看 612关注 0票数 0

下面是我的.h代码

代码语言:javascript
复制
@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
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2010-06-17 12:26:13

您是否尝试过声明您的控制器遵守UIActionSheetDelegate协议?

@interface ROSettingViewController : UITableViewController<UIActionSheetDelegate>

票数 1
EN

Stack Overflow用户

发布于 2010-06-17 12:30:42

你很可能会说,在ROSettingViewController.m:321上,

代码语言:javascript
复制
myActionSheet.delegate = self;

而没有指定您的VC实现UIActionSheetDelegate协议

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3058826

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档