Mum in iOS ...

Source: Internet
Author: User

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 ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.