iOS Development Notes

Source: Internet
Author: User

1. We all know that C # Java has a portal main function and Swift is not in the code, but there are main.swift to put this file in the entry of the program! and the file cannot be deleted if the removal program is not compiled directly through

2 basic syntax: Declare a constant with let, declare the variable with var , and the type of the generic variable that corresponds to the value

Let a=10; Constants are assigned a value that cannot be assigned two times, which means that the value of the constant is not allowed to change

var b=10; You can also define multiple values (tuples) var c= (10,20,30) can also give the name var c = (money: + , Name: "Ysq"). Visit C.money

var c=[1,3,4,45] Define the axis, access subscript

Note: When programming the semicolon can write can not write, note the space

iOS Development Notes

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.