直接调用可以出现一个加载框视图
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
+( UIView *)LoadingView { AppDelegate* del = (AppDelegate*)[[ UIApplication sharedApplication ] delegate ]; CGFloat rect = [ UIScreen mainScreen ] .bounds .size .height ; CGFloat rect 2 = [ UIScreen mainScreen ] .bounds .size .width ; UIView* backgroudview = [[ UIView alloc ] initWithFrame :CGRectMake(rect 2 / 2 - 4 0 , rect/ 2 - 4 0 , 8 0 , 8 0 )]; backgroudview .backgroundColor = [ UIColor blackColor ]; backgroudview .alpha = 0 .4 ; backgroudview .layer .cornerRadius = 6 ; backgroudview .layer .masksToBounds = YES ; UILabel *label = [[ UILabel alloc ] initWithFrame :CGRectMake( 1 0 , 2 , 6 0 , 2 0 )]; label .text = @"请稍后..." ; label .textColor = [ UIColor whiteColor ]; label .font = [ UIFont boldSystemFontOfSize : 1 5 ]; label .adjustsFontSizeToFitWidth = YES ; UIActivityIndicatorView* act = [[ UIActivityIndicatorView alloc ] initWithFrame :CGRectMake( 2 2 , 3 5 , 3 6 , 3 6 )]; act .activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge ; [act startAnimating ]; [backgroudview addSubview :act]; [backgroudview addSubview :label]; [del .nav .topViewController .view addSubview :backgroudview]; return backgroudview; } |
也读《白鹿原》:望关中平原,窥民族秘史
听说你在做数字化转型,了解中台一下不?
刘润《商业洞察力30讲》学习总结
《容器化.NET应用架构指南》脑图学习笔记(一)
也聊春节:漫天红色与春晚变迁
我的2019年终回顾:行道迟迟,载饥载渴,而立之年,持续刷新
ASP.NET Core on K8S深入学习(11)K8S网络知多少
ASP.NET Core on K8S深入学习(10)K8S包管理器Helm
【译】gRPC vs HTTP APIs