add refresh control to insert disk table

This commit is contained in:
Jesús A. Álvarez 2016-06-06 18:57:42 +02:00
parent 5649cb5015
commit 58de410e47
2 changed files with 11 additions and 0 deletions

View File

@ -296,6 +296,12 @@
</barButtonItem> </barButtonItem>
</navigationItem> </navigationItem>
<simulatedToolbarMetrics key="simulatedBottomBarMetrics"/> <simulatedToolbarMetrics key="simulatedBottomBarMetrics"/>
<refreshControl key="refreshControl" opaque="NO" multipleTouchEnabled="YES" contentMode="center" enabled="NO" contentHorizontalAlignment="center" contentVerticalAlignment="center" id="RCk-27-wrb">
<autoresizingMask key="autoresizingMask"/>
<connections>
<action selector="refresh:" destination="mbX-kA-h6M" eventType="valueChanged" id="kmL-YD-nSF"/>
</connections>
</refreshControl>
</tableViewController> </tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="n7E-Ft-tEZ" userLabel="First Responder" sceneMemberID="firstResponder"/> <placeholder placeholderIdentifier="IBFirstResponder" id="n7E-Ft-tEZ" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects> </objects>

View File

@ -90,6 +90,11 @@
[self.tableView reloadData]; [self.tableView reloadData];
} }
- (IBAction)refresh:(id)sender {
[self reloadData:sender];
[self.refreshControl endRefreshing];
}
#pragma mark - Button Actions #pragma mark - Button Actions
- (void)showSettings:(id)sender { - (void)showSettings:(id)sender {