• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CGContextSetFillColorWithColor: invalid context 0x0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGContextSetFillColorWithColor: invalid context 0x0


  • Subject: Re: CGContextSetFillColorWithColor: invalid context 0x0
  • From: Viacheslav Karamov <email@hidden>
  • Date: Wed, 30 Oct 2013 13:05:56 +0200

But do you have any workaround for it?


30.10.13, 12:26, Roland King пишет:
OS bug, been reported quite a lot of times.

On 30 Oct, 2013, at 6:07 pm, Viacheslav Karamov <email@hidden> wrote:

I have two texitfields on login form.  When I rotate the device, I got a lot of error message in a debugger console:

<Error>: 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.

<Error>: CGContextSaveGState: 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.
....

After some googling I have implemented drawLayer:inContext: my UITextField subclass:

- (void) drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx
{
    UIGraphicsPushContext(ctx);
    [super drawLayer:layer inContext:ctx];
    UIGraphicsPopContext();
}

but this didin't help at all.

Thank you for help in advance,
Vyacheslav.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: CGContextSetFillColorWithColor: invalid context 0x0
      • From: Roland King <email@hidden>
References: 
 >CGContextSetFillColorWithColor: invalid context 0x0 (From: Viacheslav Karamov <email@hidden>)
 >Re: CGContextSetFillColorWithColor: invalid context 0x0 (From: Roland King <email@hidden>)

  • Prev by Date: Re: CGContextSetFillColorWithColor: invalid context 0x0
  • Next by Date: Re: CGContextSetFillColorWithColor: invalid context 0x0
  • Previous by thread: Re: CGContextSetFillColorWithColor: invalid context 0x0
  • Next by thread: Re: CGContextSetFillColorWithColor: invalid context 0x0
  • Index(es):
    • Date
    • Thread