Alerts&Pickersを導入する為、
https://github.com/dillidon/alerts-and-pickers?ref=ioscookies.com#usage
こちらの説明を見ながら導入しようとしました。
1.gitの説明に従ってSourceファイルを画像のようにアプリ内に入れました。
2.gitの解説のように以下のようにコードを書いて見ました。
swift
1import UIKit 2 3class ViewController: UIViewController { 4 5 override func viewDidLoad() { 6 super.viewDidLoad() 7 8 9 } 10 11 @IBAction func button(_ sender: Any) { 12 let alert = UIAlertController(style: self.alertStyle) 13 alert.addLocalePicker(type: .currency) { info in Log(info) } 14 alert.addAction(title: "Cancel", style: .cancel) 15 alert.show() 16 } 17 18 override func didReceiveMemoryWarning() { 19 super.didReceiveMemoryWarning() 20 // Dispose of any resources that can be recreated. 21 } 22 23 24}
私は、エラーの内容から察するに、ライブラリがきちんと導入されていない為だと思っているのですが、sourceフォルダをプロジェクトに入れる他に何をすればいいのかがわかりません。
gitの説明文は読んだのですが上記の手順以外、必要なことは見つかりませんでした。
Alerts&Pickersを使ったことのある方、または導入法を知っている方、よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/02/15 07:15