12
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Swift] メモ

Last updated at Posted at 2014-10-22

#エラー
'A' is not conviertible to 'B'
AはBに変換できない

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

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

#継承
http://qiita.com/takkyun/items/ddacd2cd8fb5c56a66d9

#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) ")
12
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?