Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微博分享 GIF,内容编辑视图无法预览图片 #7

Open
jayi opened this issue Jan 7, 2016 · 1 comment
Open

微博分享 GIF,内容编辑视图无法预览图片 #7

jayi opened this issue Jan 7, 2016 · 1 comment

Comments

@jayi
Copy link

jayi commented Jan 7, 2016

[shareParams SSDKSetupShareParamsByText:defaultContent
                                images:shareImage    // UIImage,第一帧
                                   url:[NSURL URLWithString:shareGifUrl]
                                 title:@""
                                  type:SSDKContentTypeImage];
[shareParams SSDKSetupSinaWeiboShareParamsByText:[SSDKContentEntity new].text
                                          title:@""
                                          image:[NSURL URLWithString:shareGifPath]
                                            url:[NSURL URLWithString:shareGifUrl]
                                       latitude:0.0f
                                      longitude:0.0f
                                       objectID:nil
                                           type:SSDKContentTypeImage];

代码如上,在3.1.4及以前的版本是可以正常使用的

最新的版本上使用时,会提示以下错误,内容编辑视图没有显示图片。

Jan  7 16:55:29  wado[3433] <Error>: CGContextDrawImage: invalid context 0x0. Backtrace:
      <__38-[SSUIiPhoneEditorView layoutPortrait]_block_invoke+284>
       <__28-[SSDKImage getNativeImage:]_block_invoke46+36>
        <__45-[MOBFImageServiceObserver fail:forImageURL:]_block_invoke+104>
         <<redacted>+132>
          <<redacted>+172>
           <-[MOBFImageServiceObserver fail:forImageURL:]+216>
            <<redacted>+120>
             <<redacted>+144>
              <__71-[MOBFImageService getImageWithURL:observer:onLoading:onResult:onFail:]_block_invoke55+172>
               <__37-[MOBFImageLoader loadWebImageByURL:]_block_invoke102+128>
                <_dispatch_call_block_and_release+24>
                 <_dispatch_client_callout+16>
                  <_dispatch_main_queue_callback_4CF+2096>
                   <<redacted>+12>
                    <<redacted>+1628>
                     <CFRunLoopRunSpecific+384>
                      <GSEventRunModal+180>
                       <UIApplicationMain+204>
                        <main+392>
Jan  7 16:55:29  wado[3433] <Error>: CGContextDrawImage: invalid context 0x0. Backtrace:
      <__38-[SSUIiPhoneEditorView layoutPortrait]_block_invoke+284>
       <__28-[SSDKImage getNativeImage:]_block_invoke46+36>
        <__45-[MOBFImageServiceObserver fail:forImageURL:]_block_invoke+104>
         <<redacted>+132>
          <<redacted>+212>
           <-[MOBFImageServiceObserver fail:forImageURL:]+216>
            <<redacted>+120>
             <<redacted>+144>
              <__71-[MOBFImageService getImageWithURL:observer:onLoading:onResult:onFail:]_block_invoke55+172>
               <__37-[MOBFImageLoader loadWebImageByURL:]_block_invoke102+128>
                <_dispatch_call_block_and_release+24>
                 <_dispatch_client_callout+16>
                  <_dispatch_main_queue_callback_4CF+2096>
                   <<redacted>+12>
                    <<redacted>+1628>
                     <CFRunLoopRunSpecific+384>
                      <GSEventRunModal+180>
                       <UIApplicationMain+204>
                        <main+392>
@liufangli520
Copy link

现在用的是什么版本的sdk,可以加下我们的技术扣4006852216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants