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