[+] Add refresh family button
This commit is contained in:
@@ -255,6 +255,18 @@ class FamilyVC: UIViewController
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Called when the user clicks the refresh button
|
||||
*/
|
||||
@IBAction func btnRefresh(_ sender: Any)
|
||||
{
|
||||
sendReq(APIs.familyGet, title: "Updating family...")
|
||||
{
|
||||
$0.localSave()
|
||||
self.table.reloadData()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Called when the user clicks the change pin button
|
||||
*/
|
||||
|
||||
@@ -1111,7 +1111,7 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="30"/>
|
||||
<state key="normal" title="Refresh"/>
|
||||
<connections>
|
||||
<action selector="btnChangePin:" destination="4ss-Ye-Da4" eventType="touchUpInside" id="iZl-b9-AhU"/>
|
||||
<action selector="btnRefresh:" destination="4ss-Ye-Da4" eventType="touchUpInside" id="t7G-Ur-JIH"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="R2H-k5-27v">
|
||||
|
||||
Reference in New Issue
Block a user