swift-Development # 1.2 version migration

Source: Internet
Author: User

{Parallels: You can drag a win program to your Mac to run. }--Similar to virtual machine

Some of the major problems encountered:

1, Automatic modification invalid?  

--Ignore it's existence, pit.

2, endless changes, or wrong?

--Using the Replace tool--"basically as mandatory

    • [edit-convert-"to Latest Swift Syntax"]-totally useless
    • Use the Find & Replace feature
      • (replace->text->matching)

--! Force up turn

--? Safe Turn Down

3, deployment compiled version wrong?

--Maintained as version 8.2 (iwatch development)

4, NSString and string incompatible!

    • Return NSString (Data:data, encoding:encoding)
      • Error--' nsstring? ' isn't convertible to ' String? '
      • TODO: Add as in the rear ? Stringfor Strong-turn
        • Return NSString (Data:data, encoding:encoding) as ? String

--strongly converted to string  

5, Nsset and set incompatible!

      • TODO: Add as set<nsobject>in the rear to enable strong turn

--strongly converted to string

6, about Souschefkit third-party package, cannot find files and so on.

--After selecting the package, recompile, and then modify the error!

Use Xib without storyboard:

1, set the main Interface to empty!

--Create a Xib file

2. Configuring the Xib File

3, load Xib, show page!

Comparison of--swift and Object-c

Weather Show app Small app

--swift Development

Code Share, Github:https://github.com/spongebob-github/weather_swift

|--> Copyright (c) Bing Ma.

|--> GitHub RUL: https://github.com/SpongeBob-GitHub

swift-Development # 1.2 version migration

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.