This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //課題14 | |
| //共通のデータメソッドクラス | |
| import UIKit | |
| class CommonData: NSObject { | |
| let keyName:String = "name" | |
| let keyCheck:String = "check" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //課題14 | |
| //追加画面 | |
| import UIKit | |
| class AddFormViewController: UIViewController { | |
| //追加の名前 | |
| @IBOutlet weak var textFieldForName: UITextField! | |
| var appDelegate:AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //課題14 | |
| //TableViewContoroller | |
| import UIKit | |
| class TableViewController: UITableViewController { | |
| //共通で保持するデータ | |
| var appDelegate:AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //課題13+ | |
| import UIKit | |
| class TableViewController: UITableViewController { | |
| let keyName:String = "name" | |
| let keyCheck:String = "check" | |
| //果物とチェックマークのDictionaryのリスト |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //課題13 | |
| import UIKit | |
| class TableViewController: UITableViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| // Uncomment the following line to preserve selection between presentations | |
| // self.clearsSelectionOnViewWillAppear = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| class ViewController: UIViewController { | |
| @IBOutlet weak var calcStr1: UILabel! | |
| @IBOutlet weak var calcStr2: UILabel! | |
| @IBOutlet weak var resultLabel: UILabel! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| class ViewController: UIViewController { | |
| @IBOutlet weak var textField1: UITextField! | |
| @IBOutlet weak var textField2: UITextField! | |
| @IBOutlet weak var segmentedControl: UISegmentedControl! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| class ViewController: UIViewController { | |
| @IBOutlet weak var costLabel: UITextField! | |
| @IBOutlet weak var taxLabel: UITextField! | |
| @IBOutlet weak var taxCostLabel: UILabel! | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| class ViewController: UIViewController { | |
| @IBOutlet weak var prefectureLabel: UILabel! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| // Do any additional setup after loading the view, typically from a nib. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| class TableViewController: UITableViewController { | |
| @IBOutlet var myTableView: UITableView! | |
| //都道府県名はここから取得 | |
| let prefecturalArr = [ | |
| "北海道","青森県","岩手県","宮城県","秋田県","山形県", | |
| "福島県","茨城県","栃木県","群馬県","埼玉県","千葉県", |