在iPhone应用程序中绘制带有某种颜色的图层 [英] draw a layer with some color in iPhone Application
问题描述
我想知道如何在窗口中绘制带有某些颜色[CGColorRef]的图层
当我尝试将SubLayer添加到我的窗口时,应用程序退出而没有显示任何异常。一些释放实例。尝试按照以下说明打开NSZombieEnabled:
http: //www.codza.com/how-to-debug-exc_bad_access-on-iphone
这将告诉您何时发送了错误消息。 / p>
此外,如果您想提出一个涉及特定代码的问题,则会得到更好的答复。尝试发布您的代码,也许我们可以为您进行基本调试。
I would like to know how to draw a layer with some color [CGColorRef] in a window
When i am trying to addSubLayer to my window , the application is exiting without showing any exception.
If your app is just quitting with no debug error, there still could be a message sent to some deallocated instance. Try turning on NSZombieEnabled by following the instructions here: http://www.codza.com/how-to-debug-exc_bad_access-on-iphone
This will tell you when a bad message is sent.
Further, if you'd like to ask a question involving specific code, you'll get better responses. Try posting your code and maybe we can help you with basic debugging.
这篇关于在iPhone应用程序中绘制带有某种颜色的图层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!