Permalink
Browse files

Add a method to reload the whole picker view from delegate, fixes #3

…thanks!
  • Loading branch information...
1 parent 73e190c commit f322bcca57091fb0750c951f1ae32737d64f1c5f @alexleutgoeb committed May 22, 2012
Showing with 11 additions and 0 deletions.
  1. +3 −0 Classes/ALPickerView.h
  2. +8 −0 Classes/ALPickerView.m
View
3 Classes/ALPickerView.h
@@ -43,6 +43,9 @@
// If set to nil the all option row is hidden at all, default is 'All'
@property (nonatomic, copy) NSString *allOptionTitle;
+// Reload whole pickerview from delegate
+- (void)reloadAllComponents;
+
@end
View
8 Classes/ALPickerView.m
@@ -94,6 +94,14 @@ - (void)dealloc {
}
+#pragma mark - Custom methods
+
+////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+- (void)reloadAllComponents {
+ [internalTableView_ reloadData];
+}
+
+
#pragma mark - UITableView
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

0 comments on commit f322bcc

Please sign in to comment.