トップ «前の日記(2019-04-21) 最新 次の日記(2019-05-30)» 編集

Cocoa練習帳

iOS/iPhone/iPad/watchOS/tvOS/MacOSX/Android プログラミング, Objective-C, Cocoa, Swiftなど

2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|09|10|11|12|
2024|01|02|03|

2019-04-22 [cocoa][swift]iOSアプリケーション開発入門:はじめの一歩

_ # 開発環境

  • mac
  • iOS機器

_ # Apple Developer Program

  • https://developer.apple.com/jp/programs/
    • 無料でも開発できますが、有料の登録をお勧めします。

_ # 参考資料

  • 無料の"ブック"アプリのSwift Programming Series
  • 日本語ドキュメント
    • https://developer.apple.com/jp/documentation/
  • App Programming Guide for iOS
    • https://developer.apple.com/library/archive/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html

_ # はじめてのアプリケーション

Xcodeを起動し、File / New / Project... を選択する。

NewProject

iOS / Single View App を選択する。

SingleViewApp

サンプルでは、Product Nameを「HelloWorld」としました。

ProductName

ストーリーボードでビューの背景色を設定します。

BGColor

「Run」ボタンをクリック(または「Product」>「Run」を実行)して、シミュレータを起動します。

sim

設定した背景色で起動します。

_ ソースコード

GitHubからどうぞ。
https://github.com/murakami/workbook/tree/master/ios/HelloWorld - GitHub

トップ «前の日記(2019-04-21) 最新 次の日記(2019-05-30)» 編集