ios - 如何在连接网络时弹出活动指示器?
迷茫
迷茫 2017-04-17 14:48:07
0
1
709

我封装了一个类,里面有个方法用于处理网络连接,我想在这个方法里加入活动指示器,
在连接网络前让activityindicator startanimating,而不必在每个视图控制器那里加入
活动指示器,请问该怎么做?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
洪涛

Where do you want to add it? ?
If you want to call the system: [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
This is the chrysanthemum on the left side of the battery bar.
If you want it to be in the middle of the screen, just add it to keyWindow.
There is an open source network request indicator, click here HUD

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template