Several features that can be written when the app is started (i.e.: Appdelegate file)

Source: Internet
Author: User

Several features that the app can write when it starts up (that is, theappdelegate file):

1, by judging the root controller, to achieve a distinction has no welcome interface

2, because the IOS11 TableView and some of the previous some differences, so in the app launch can add a suitable Ios11 method {

If (@available (IOS 11.0, *)) {

UIScrollView.appearance.contentInsetAdjustmentBehavior = Uiscrollviewcontentinsetadjustmentnever;

UITableView.appearance.estimatedRowHeight = 0;

UITableView.appearance.estimatedSectionFooterHeight = 0;

UITableView.appearance.estimatedSectionHeaderHeight = 0;

}

}

3, the app sometimes because the memory is not enough, will touch applicationdidreceivememorywarning: method, so, can do some cleanup memory operation {

[[Sdwebimagemanager Sharedmanager]cancelall];// Cancel all downloads

[[Sdwebimagemanager sharedmanager].imagecache clearmemory];// Clear Cache now

}

4, if the use of dandelion packaging, you can do a dandelion automatic update function, Dandelion official website has the SDK documentation, you can refer to.

Several features that can be written when the app is started (i.e.: Appdelegate file)

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.