我在TextField输入内容 会报如下错误 但程序还能运行
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextSaveGState: invalid context 0x0
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextDrawLinearGradient: invalid context 0x0
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextSetFillColorWithColor: invalid context 0x0
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextFillRects: invalid context 0x0
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextFillRects: invalid context 0x0
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextSetFillColorWithColor: invalid context 0x0
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextFillRects: invalid context 0x0
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextSaveGState: invalid context 0x0
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextDrawLinearGradient: invalid context 0x0
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextSetFillColorWithColor: invalid context 0x0
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextFillRects: invalid context 0x0
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextFillRects: invalid context 0x0
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextSetFillColorWithColor: invalid context 0x0
Oct 18 18:51:12 sunjiandeiMac.local EasyTaxi[4316] : CGContextFillRects: invalid context 0x0

yiwangzq  •  3575 查看  •  5 回答  •  2012-10-18 19:10
共有 5 个回答
  • 2012-10-18 19:11:13
    回复
    怎么回事
    登录后方可回复

      
  • 2012-10-19 09:17:36
    回复
    这个好像是ios6的问题,出现之后锁屏再返回程序会崩溃。

    UIBackgroundTaskIdentifier backgroundTask;//写成成员

    - (void)applicationDidEnterBackground:(UIApplication *)application
    {
    if (([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0))
    {
    // Acquired additional time
    UIDevice *device = [UIDevice currentDevice];
    BOOL backgroundSupported = NO;
    if ([device respondsToSelector:@selector(isMultitaskingSupported)])
    {
    backgroundSupported = device.multitaskingSupported;
    }
    if (backgroundSupported)
    {
    backgroundTask = [application beginBackgroundTaskWithExpirationHandler:^{
    [application endBackgroundTask:backgroundTask];
    backgroundTask = UIBackgroundTaskInvalid;
    }];
    }
    }
    }

    这样可以解决崩溃,其他没有什么影响.
    登录后方可回复

      
  • 2013-04-18 23:49:00
    回复
    http://stackoverflow.com/questions/13352501/bug-using-specific-keyboard-with-uitextview



    0
    down vote
    accepted
    I have reproduced the bug in the iOS 6.0 simulator and on my iPhone 4S running iOS 6.0.1, but it doesn't happen in the iOS 5.0 simulator. It's a bug in iOS 6. You should open a bug report on it at http://bugreport.apple.com.

    That said, it doesn't seem to be particularly harmful, so I wouldn't worry about it.
    登录后方可回复

      
  • 2013-04-18 23:55:59
    回复
    登录后方可回复

      
  • 2013-05-02 11:43:24
    回复
    同问!
    登录后方可回复

      
登录后方可回答

  

热门问答