草庐IT

UIActionSheetDelegate

全部标签

ios - 使用 UIActionSheetDelegate 执行多个 Segue

我希望通过单个UIBarButtonItem按钮进行多个segue,并根据通过UIActionSheetDelegate的响应,正确的UIViewController将通过pushsegue加载。这是我当前用于UIActionSheetDelegate的代码。-(void)actionSheet:(UIActionSheet*)actionSheetclickedButtonAtIndex:(NSInteger)buttonIndex{if(buttonIndex==0){//ratethisapp}elseif(buttonIndex==1){[selfperformSegueWit

ios - 不兼容的指针类型将 'Class' 发送到类型为 'id<UIActionSheetDelegate>' 的参数

我收到警告Incompatiblepointertypessending'Class'toparameteroftype'id'intheline"delegate:self"below:+(SHKActionSheet*)actionSheetForType:(SHKShareType)type{SHKActionSheet*as=[[SHKActionSheetalloc]initWithTitle:SHKLocalizedString(@"Share")delegate:selfcancelButtonTitle:nildestructiveButtonTitle:nilothe

ios - 不兼容的指针类型将 'Class' 发送到类型为 'id<UIActionSheetDelegate>' 的参数

我收到警告Incompatiblepointertypessending'Class'toparameteroftype'id'intheline"delegate:self"below:+(SHKActionSheet*)actionSheetForType:(SHKShareType)type{SHKActionSheet*as=[[SHKActionSheetalloc]initWithTitle:SHKLocalizedString(@"Share")delegate:selfcancelButtonTitle:nildestructiveButtonTitle:nilothe