iOS - UIActivityIndicator causing “Hides when stop

2019-04-19 12:59发布

问题:

I'm getting this warning for every nib file that contains a UIActivityIndicator.
The warning states:
Unsupported Configuration: Hides when stopped but is neither hidden or animating

What am i doing wrong?

回答1:

This means, You have set Hides when stopped.

So there must be two states only,

  1. Hidden
  2. Animating

But you have set neither Hidden nor Animating.

See the image:

It must be Hidden or Animating, If you have Checked Hides when stopped.



回答2:

You have selected hide when stopped option but you are never hiding activityindicator. set you setting as in attached image