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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.