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)