LoginSignup
1
4

More than 5 years have passed since last update.

“HelloWorld” チュートリアル(Swift)

Posted at

新しいプロジェクト作成
1) Xcode アプリケーションを起動
起動する時Welcome画面表示するので、[Create a new Xcode project]をクリックします。
Screen Shot 2017-05-23 at 17.14.50.png

2) Xcodeから,Template選択できるためXcode 新しWindow表示します。
3) [ios]文言を選択します。
4) ApplicationSectionの中で「Single View Application」を選択します。
Screen Shot 2017-05-23 at .png

5) 下のダイアログ表示します。
このダイアログでProductName, Team, Organization Name などを登録必要です。
- Product Name : HelloWorld (プロジェクト名)
- Team: 自動でNoneを入力します。
- Organization Name:自分のorganization名を入力します。(空でも大丈夫)
- Organization Identifer: com.exampleを入力します。
- Bundle Identifier: product nameとorganization identifier を使って自動で作ります。
- Language: Swiftを入力します。
- Device: iPhone
- Use Core Data : 選択しない
- Include Unit Tests: 選択します。
- Include UI Test: 選択しない
Screen Shot 2017-05-23 at 12.06.30.png

6) Next ボタンをクリックします。
7) Save ダイアログ表示します。
プロジェクトのlocationを選んで、保存と作成します。
8) ViewController.swift を選択します。
Screen Shot 2017-05-23 at aaa.png

9) ViewControllerファイルの中でviewDidLoad() functionでLabelを作って
“HelloWorld!” を書きます。
Screen Shot 2017-05-23 at 17.52.34.png

10) 実行Buttonをクリックして実行します。
Screen Shot 2017-05-23 at 17.54.26.png

"HelloWorld!"
helloworld.tiff

1
4
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
1
4