Editing alarm now displays correct title.
This commit is contained in:
@@ -19,6 +19,7 @@ class AddAlarmViewController: UIViewController
|
||||
|
||||
//Toggle editing mode
|
||||
editFlag = true
|
||||
viewTitle.text = "Edit Alarm"
|
||||
|
||||
//Convert string to Date
|
||||
let dateFormatter = DateFormatter()
|
||||
@@ -78,7 +79,8 @@ class AddAlarmViewController: UIViewController
|
||||
@IBOutlet weak var repeatWeekendsSwitch: UISwitch!
|
||||
@IBOutlet weak var alarmNameTextField: UITextField!
|
||||
@IBOutlet weak var timeTillAlarmLabel: UILabel!
|
||||
|
||||
@IBOutlet weak var viewTitle: UILabel!
|
||||
|
||||
/**
|
||||
Called when the time for the alarm is changed.
|
||||
Sets the time away at the top of the View.
|
||||
|
||||
@@ -625,6 +625,7 @@
|
||||
<outlet property="scrollViewInner" destination="N7f-vi-SFU" id="LQW-6T-f6x"/>
|
||||
<outlet property="timePicker" destination="qSt-1V-2DQ" id="aDM-jE-0OP"/>
|
||||
<outlet property="timeTillAlarmLabel" destination="Xqs-n0-H9G" id="fg6-18-oAG"/>
|
||||
<outlet property="viewTitle" destination="97A-aJ-4ms" id="MZL-qA-2AV"/>
|
||||
<outlet property="wvmPicker" destination="oae-b2-SoF" id="ADd-1r-iNM"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
|
||||
Reference in New Issue
Block a user