Skip to content

Commit

Permalink
Add a method to reload the whole picker view from delegate, fixes ale…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexleutgoeb committed May 22, 2012
1 parent 73e190c commit f322bcc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/ALPickerView.h
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
8 changes: 8 additions & 0 deletions Classes/ALPickerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ - (void)dealloc {
}


#pragma mark - Custom methods

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- (void)reloadAllComponents {
[internalTableView_ reloadData];
}


#pragma mark - UITableView

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit f322bcc

Please sign in to comment.