Я пытаюсь сделать простой круг в viewdidload с помощью следующего кода:
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UIBezierPath* aPath = [UIBezierPath bezierPathWithArcCenter:CGPointMake(100,100) radius:100 startAngle:M_PI/6 endAngle:M_PI clockwise:YES];
[aPath fill];
}
Я получаю следующую ошибку:
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.
Я знаю, что эта проблема уже обсуждается здесь Но не могу относиться. Ошибка возникает в
[aPath fill];
Связано ли это с жизненным циклом приложения?