how to display UIActivityIndicatorView BEFORE rotation begins

前端 未结 4 2017
既然无缘
既然无缘 2020-12-12 06:33

I\'d like to display an activity indicator BEFORE the work undertaken by willAnimateRotationToInterfaceOrientation:duration: begins. Most of the time in my

4条回答
  •  隐瞒了意图╮
    2020-12-12 07:16

    Try performing you work on a second thread after showing the activity view.

    [self showActivityIndicatorView];
    [self performSelector:@selector(simulateHardWorkNeededToGetDisplayInShapeBeforeRotation) withObject:nil afterDelay:0.01];
    

提交回复
热议问题