Home > Article > Web Front-end > Why doesn't the constructor prompt in swift?
This time I will bring you why the constructor in swift does not prompt? , what are the precautions when using constructors in swift? The following is a practical case, let’s take a look.
I just got into Swift not long ago, and I watched videos on the Internet. I saw that when I typed UIImage(), the prompt code came out. When I typed UIImage() myself, there was no prompt at all. , various Google searches, but no answer was found.
##Finally, I watched the video carefully, and it turns out that there is something wrong with my spelling habits. UIImage( just needs to type out the left bracket ( Note: Do not type out the brackets on the right), the code will immediately prompt you. It turns out that your own habits have tricked you! I believe you have mastered the method after reading the case in this article, please come for more exciting information Follow php Chinese websiteOther related articles!
Recommended reading:How to add a code block with prompt function
Commonly used WebStorm shortcut keys
The above is the detailed content of Why doesn't the constructor prompt in swift?. For more information, please follow other related articles on the PHP Chinese website!