In IOS (Xcode) DEBUG mode (RELEASE mode), NSLog output is controlled. NSLog is output in two different situations, xcodenslog

Source: Internet
Author: User

In IOS (Xcode) DEBUG mode (RELEASE mode), NSLog output is controlled. NSLog is output in two different situations, xcodenslog

[New Year's weather,]

 

During IOS program development, developers often need to use NSLog to output some information. In some development processes, they must view the output on the console, experienced programmers can use the console to output the entire data interaction process. However, a published program contains too many NSLog outputs, which must have an impact on App performance. At this time, we can use a macro definition for processing and use the DEBUG mode during development, use the RELEASE mode during RELEASE. In this way, the published App will not output a large number of nslogs in the program.

 

Related Article

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.