Swift Start!!


平成27年9月2日(水曜日)

Master-Detail-Applicationのソースを眺めての印象や疑問点
ヘッダー .hが無い。
コード量が少なく、すっきり!!
以下、気づいた点

  1. let
  2. func
  3. ?
  4. !
  5. if let
  6. lazy var {}()
  7. didSet

Swift_(プログラミング言語)

?、!、if letはOptional型として検索
Optional
Swiftでの、if + letによるnilチェックの解説
lazy var {}()は以下参照
Lazy Initialization with Swift
didSetは以下参照
Swift言語を学ぶ didSet
Swift言語を学ぶ


UISearchController


ディテールビューへの遷移含むUITableView Tutorial: Adding Search
Appleのサンプルで学ぶUISearchDisplayControllerの使い方
Custom Search Bar —– >> How To Create a Custom Search Bar Using UISearchController
VS —– >> UISearchController vs UISearchDisplayController
ERROR!! シンプル ディテールビューへの遷移含む TableSearch iOS-Swift-Demos


最もシンプルな例ioscreator/ioscreator · GitHub IOS8SwiftAddSearchTableViewTutorial
Add Search to Table View Tutorial in iOS8 with Swift

最新版追加(平成27年10月31日(土曜日)
UISearchController in Swift – Xcode 7 iOS 9 Tutorial
上記について以下
2015-10-31 13:38:41.670 UISearchController Xcode 7[6513:693320] Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior ()
対処法 以下
Attempting to load the view of a view controller while it is deallocating


難解 テーブルビューコントローラの継承有りApple sample TableSearch


SwiftCSV


SwiftCSV
Usage


SWRevealViewController in Swift


Creating a Sidebar Menu Using SWRevealViewController in Swift


XCTest


SWIFT -> セクション分け(グループ分け)されたテーブルを作成する


文字列重複削除 -> Unique values of array in swift [duplicate]


SWIFT版 -> UITableViewでテーブルを表示
プレイグラウンドにてテーブル表示 以下追加

[objc]
// 追加
import XCPlayground
// 追加
self.view.frame = CGRect(x: 0, y: 0, width: 320, height: 480)
// 追加
var ctrl = ViewController()
XCPShowView("Playground tableview", ctrl.view)
[/objc]

新バージョン

[objc]
var ctrl = ViewController()

//新バージョン
XCPlaygroundPage.currentPage.liveView = ctrl.view

// 旧バージョン
//XCPShowView("Playground tableview", view: ctrl.view)
[/objc]


Playgraound


Swift + Playgraoundメモ 2 – SpriteKitで物理シミュレーション
Playground で UITableView の Cell の調整をする


SWIFT様々


配列(Array)、辞書(Dictionary)の作り方
配列内のオブジェクト -> フィルタリング
Filtering a Swift Array of Dictionaries or Object property
Filtering Arrays Containing Multiple Data Types in Swift
<ahref=”https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Initialization.html”>nitialization
iOS & Swift Tutorial: UITableViewController
セクション分け(グループ分け)されたテーブルを作成する
NSArrayやNSDictionaryを、SwiftのArrayやDictionaryと相互に変換する
TableView sections with Struct String in Swift
How to check if an element is in an array
[Swift] Closureについてメモ