The use of IOS pragma mark

Source: Internet
Author: User

Shimen the main contribution, respect the work of the author, please do not reprint.

If the article is helpful to you, you are welcome to donate to the author, support the Shimen, donate the amount at random, ^_^

I want to donate: Click Donate

Cocos2d-x source Download: Dot I teleport


In simple terms, it is easy to find and navigate the code.


Here's an example of how to quickly navigate to the code I've identified.
#pragma mark Life cycle-(void) viewdidload {    [super viewdidload];    Do any additional setup after loading the view.        if (New_password = = Self.sourcetype | | Forget_password = = self.sourcetype) {        [self initnewpasswordview];    }    else{        [self initchangepasswordview];}    }

OK, so how to find it, click on the navigation bar above the Code Editor.

then I change the code:
#pragma mark-life Cycle

you don't see the difference, do you? Actually, one more line.
What is the effect of this dash (minus sign), click on the navigation bar again to see.
Plus-a split line will be displayed to make the comment name more prominent.
as shown in the following:

Shimen the main contribution, respect the work of the author, please do not reprint.

If the article is helpful to you, you are welcome to donate to the author, support the Shimen, donate the amount at random, ^_^

I want to donate: Click Donate

Cocos2d-x source Download: Dot I teleport

The use of IOS pragma mark

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.