Giter Site home page Giter Site logo

Xcode 15 iOS17 Crash about ybimagebrowser HOT 3 OPEN

MrChen88088 avatar MrChen88088 commented on August 28, 2024
Xcode 15 iOS17 Crash

from ybimagebrowser.

Comments (3)

ngng1024GH avatar ngng1024GH commented on August 28, 2024

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UIGraphicsBeginImageContext() failed to allocate CGBitampContext: size={0, 0}, scale=3.000000, bitmapInfo=0x2006. Use UIGraphicsImageRenderer to avoid this assert.'

_UIGraphicsBeginImageContextWithOptions 方法被弃用,麻烦作者可以更新一下吗?

可以试一下这个方法,参考这篇:
https://www.jianshu.com/p/aeb0b9129fcd
UIGraphicsImageRenderer *re = [[UIGraphicsImageRenderer alloc]initWithSize:view.bounds.size];
UIImage *image = [re imageWithActions:^(UIGraphicsImageRendererContext * _Nonnull rendererContext) {

}];
return image;

from ybimagebrowser.

ngng1024GH avatar ngng1024GH commented on August 28, 2024

这一篇更详细一点,可能需要自己去做修改了
https://blog.csdn.net/weixin_42050662/article/details/134524136

from ybimagebrowser.

frankkly avatar frankkly commented on August 28, 2024

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UIGraphicsBeginImageContext() failed to allocate CGBitampContext: size={0, 0}, scale=3.000000, bitmapInfo=0x2006. Use UIGraphicsImageRenderer to avoid this assert.'
_UIGraphicsBeginImageContextWithOptions 方法被弃用,麻烦作者可以更新一下吗?

可以试一下这个方法,参考这篇: https://www.jianshu.com/p/aeb0b9129fcd UIGraphicsImageRenderer *re = [[UIGraphicsImageRenderer alloc]initWithSize:view.bounds.size]; UIImage *image = [re imageWithActions:^(UIGraphicsImageRendererContext * _Nonnull rendererContext) {

}]; return image;

感谢,有效,作者快快更新~

from ybimagebrowser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.