Swift Tutorial _swift FAQ (0005) _ Perfect solution cannot override & #39;d ealloc& #39;

Source: Internet
Author: User

Swift Tutorial _swift FAQ (0001) _coredata:warning:unable to load class named ' xxx ' for entity ' xxx '

Swift Tutorial _swift FAQ (0002) _ Perfect handling of Sourcekitservice crashed exceptions. Most of the 6.1.1 have been repaired

Swift Tutorials _swift Frequently asked questions (0003) _storyboard changes do not take effect

Swift tutorial _swift Frequently asked questions (0004) _swift code does not actively prompt and complete

Swift Tutorial _swift FAQ (0005) _ Perfect solution cannot override ' Dealloc ' exception

Swift tutorial _swift Frequently asked questions (0006) _ Perfect solution to the memory overflow when the Swift array index is a variable

Swift Tutorial _swift FAQ (0007) _can ' t find model for source store


Description of the problem:

Swift has removed the Dealloc () method, so assume that the rewrite will be reported:

Cannot override ' Dealloc ' which has been marked unavailable


How to resolve:

Swift uses a destructor method to perform a similar dealloc operation. The destructor method is relative to the construction method, deinit and init respectively.


Click to enter Ooppookid's blog

Swift Tutorial _swift FAQ (0005) _ Perfect solution cannot override & #39;d ealloc& #39;

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.