13th Month 10th Day swift3.0

Source: Internet
Author: User

1.

Type ' Any ' have no subscript members

This one is simply baffling. The general meaning is, you this type "any" is not the array or the dictionary, cannot follow the subscript to take the thing.

I previously created a dictionary by default in a method, and the compiler thought it was a dictionary, so allow me to fetch things, but now the compiler is out of the way, saying that you have to tell me it's a dictionary and I can get you to pick things up. Okok.

1     (DIC as! Nsdictionary)

Similarly, there are various types of mismatches that can be cast. (secretly say, really miss OC's weak type of time ~)

Http://www.cnblogs.com/SoulKai/p/6056659.html

2.

        Dispatchqueue. Global (QoS:. Background). async {            //  background Threadlet            rs = db.executequery (SQL, Withargumentsin: [])                        = [Noteitemmodel] ()                        DispatchQueue.main.async {                // Run UI Updates                 callBack (Arraym)            }        }

13th Month 10th Day swift3.0

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.