Lag while drawing in ios7

后端 未结 3 590
甜味超标
甜味超标 2021-02-04 21:33

I am having an app in which I am doing some sketching on a view.

So far, it was working fine until I installed ios7.

My app uses touches moved met

3条回答
  •  忘掉有多难
    2021-02-04 22:12

    To find a instant solution, Replace this line

     mainImage.image = UIGraphicsGetImageFromContext(UIGraphicsGetCurrentContext());
    

    with

    [mainImage performSelectorInBackground:@selector(setImage:) withObject:UIGraphicsGetImageFromCurrentImageContext()];
    

    If you need an elaborate and accurate solution try to replace the MoveTo with CGMutablepath . Hope this helps.

提交回复
热议问题