gpt4 book ai didi

objective-c - CGContext 无效上下文 0x0

转载 作者:太空狗 更新时间:2023-10-30 03:11:56 28 4
gpt4 key购买 nike

: CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

: CGContextSetStrokeColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

和重复的类似错误:

  • CGContextSaveGState
  • CGContextSetFlatness
  • CGContextAddPath
  • CGContextDrawPath
  • CGContextRestoreGState
  • CGContextSaveGState
  • CGContextSetFlatness
  • CGContextAddPath
  • CGContextDrawPath
  • CGContextRestoreGState
  • CGContextSetFillColorWithColor
  • CGContextSetStrokeColorWithColor
  • CGContextSetFillColorWithColor
  • CGContextSetStrokeColorWithColor
  • CGContextGetBlendMode
  • CGContextSetBlendMode
  • 还有更多...

在我的应用程序中,我不使用任何 CGContext 东西。我只有一个 UITextViewUIButtonUILabel。还没有添加太多代码。只需通过以下方式设置 UITextView 的内容:

[self.text_view setText:@"123"];

如何解决错误?

我正在使用 Xcode 5.0(内部版本 5A1413)、iOS 7 模拟器(64 位 Retina 4")、Mac OS X 10.8.5

最佳答案

试试这个:在 xcode 中将符号断点添加到 CGPostError。 (添加符号断点,并在 Symbol 字段类型 CGPostError 中)

当错误发生时,调试器将停止代码执行,您可以检查方法调用堆栈并检查参数。

关于objective-c - CGContext 无效上下文 0x0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19508048/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com