Skip to content

Commit

Permalink
Almost there with Custom Control. Last step is to actually make HTTP …
Browse files Browse the repository at this point in the history
…request.

Issue: #15
  • Loading branch information
gdombiak committed Aug 26, 2018
1 parent c7b33e9 commit 44e8084
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import UIKit

class CustomControlInputViewCell: UITableViewCell {

@IBOutlet weak var inputLabel: UILabel!
@IBOutlet weak var inputValueField: UITextField!

var row: Int!

var executeControlViewController: ExecuteControlViewController!

override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}

override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)

// Configure the view for the selected state
}

@IBAction func valueChanged(_ sender: Any) {
// Notify parentVC of new value for this Input
if let text = inputValueField.text {
executeControlViewController.valueUpdated(row: row, value: text as AnyObject)
}
}
}

0 comments on commit 44e8084

Please sign in to comment.