In fact, the system of chrysanthemum in addition to function a little bit, do not have the ability to refresh the page, others are OK, to meet you some of the normal hint function is more than enough; just stick the code inside the project, and there's nothing special to note, and some of the settings are left as a backup.
Daisy remember to add to the top of the attempt, or it will be covered! Turn on and off are start and stop
_activity = [[Uiactivityindicatorview alloc] Initwithframe:cgrectmake (0, 0, 200, 200)];//Specify the size of the progress wheel
Set Background transparency
_activity.alpha = 0.8;
Set Background to rounded rectangle
_activity.layer.cornerradius = 100;
_activity.layer.maskstobounds = YES;
[_activity Setcenter:cgpointmake (KJSSCREENWIDTH/2, (KJSSereenHeight-64)/2)];//Specify a progress wheel center point
[_activity setactivityindicatorviewstyle:uiactivityindicatorviewstylewhitelarge];//Set Progress wheel Display type
_activity.color = [Uicolor Graycolor];
[Self.view addsubview:_activity];
UILabel *label = [[UILabel alloc]initwithframe:cgrectmake (50, 120, 100, 50)];
Label.text = @ "Loading ...";
Label.textcolor = [Uicolor Graycolor];
Label.textalignment = Nstextalignmentcenter;
Label.autoresizessubviews = YES;
[_activity Addsubview:label];
Wen/ljr-Wai Sunny (Jane book author)
Original link: http://www.jianshu.com/p/f8e2c921dfc7
Copyright belongs to the author, please contact the author to obtain authorization, and Mark "book author".
Mum in iOS ...