Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
11
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

[Swift] メモ

エラー

'A' is not conviertible to 'B'
AはBに変換できない

Expected Declaration
クラスに直接 処理を書いてはいけない
関数のなかで処理を書く

Use of unresolved ''
'
'は定義されていない値、関数です

継承

SwiftとObjective-C

http://blog.f60k.com/objective-cとswiftの組み合わせ方のまとめ/
http://blog.f60k.com/objective-cとswiftの組み合わせ方のまとめpart2/

単語

Inheritance
継承

extension
拡張

declaration
宣言

変数の宣言

var myVar = 100 //varは変数
let myLet = 999 //letは定数

バックスラッシュ

option + ¥

関数定義

func kakezan(int1: Int, int2: Int) -> Int {
     return int1 * int2
}
println( kakezan(2, 3) )

println()

var num = 123
println("num = \(num) ")
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
11
Help us understand the problem. What are the problem?