reason: '-[SSShareActionSheetCustomItem integerValue]: unrecognized selector sent to instance 0x7fc6

简介:

ShareSDK自定义分享菜单时,出现了这个问题:

reason: '-[SSShareActionSheetCustomItem integerValue]: unrecognized selector sent to instance 0x7fc661d902f0'


原因是使用的是自定义的分享菜单,是不应该传一健分享数组的:

  // 如果是使用一键分享,则需要传oneKeyShareList参数,
  // 如果使用的是自定义的分享菜单,则这个参数需要设置为nil,
  // 否则会出现
  id<ISSShareOptions> shareOptions = [ShareSDK defaultShareOptionsWithTitle:@"分享信息"
                                                            oneKeyShareList:shareList
                                                             qqButtonHidden:NO
                                                      wxSessionButtonHidden:NO
                                                     wxTimelineButtonHidden:NO
                                                       showKeyboardOnAppear:YES
                                                          shareViewDelegate:nil
                                                        friendsViewDelegate:nil
                                                      picViewerViewDelegate:nil];

把oneKeyShareList参数设置为nil:

  // 如果是使用一键分享,则需要传oneKeyShareList参数,
  // 如果使用的是自定义的分享菜单,则这个参数需要设置为nil,
  // 否则会出现
  id<ISSShareOptions> shareOptions = [ShareSDK defaultShareOptionsWithTitle:@"分享信息"
                                                            oneKeyShareList:nil
                                                             qqButtonHidden:NO
                                                      wxSessionButtonHidden:NO
                                                     wxTimelineButtonHidden:NO
                                                       showKeyboardOnAppear:YES
                                                          shareViewDelegate:nil
                                                        friendsViewDelegate:nil
                                                      picViewerViewDelegate:nil];

这样就解决了!
目录
相关文章
|
23天前
network is not ready: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady me
network is not ready: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady me
21 1
|
5月前
|
负载均衡 监控 网络协议
502 Bad Gateway Registered endpoint failed to handle the request
502 Bad Gateway Registered endpoint failed to handle the request
64 1
|
8月前
|
前端开发 数据库
Failed to load response dataNo data found for resource with given identifier
Failed to load response dataNo data found for resource with given identifier
1042 0
unrecognized selector sent to instance的一类解决办法
unrecognized selector sent to instance的一类解决办法
97 0
|
索引
ES报错:“type“=>“cluster_block_exception“, “reason“=>“blocked by: [FORBIDDEN/12/index read-only / allow
ES报错:“type“=>“cluster_block_exception“, “reason“=>“blocked by: [FORBIDDEN/12/index read-only / allow
273 0
ES报错:“type“=>“cluster_block_exception“, “reason“=>“blocked by: [FORBIDDEN/12/index read-only / allow
|
Android开发
【错误记录】前台进程报错 ( Bad notification for startForeground invalid channel for service notification )
【错误记录】前台进程报错 ( Bad notification for startForeground invalid channel for service notification )
1263 0
【错误记录】前台进程报错 ( Bad notification for startForeground invalid channel for service notification )
How to resolve Unable to load groups error message
When you open Fiori launchpad, you can only see empty screen with the following error message:
How to resolve Unable to load groups error message
How to resolve warning message Access restriction -The type Resource is not accessible
How to resolve warning message Access restriction -The type Resource is not accessible
116 0
How to resolve warning message Access restriction -The type Resource is not accessible