Permalink
Browse files

Adding external outlet to the toolbar — allowing to (for example) rea…

…rrange or remove items. Personal Use case: removing the Clear button.
  • Loading branch information...
1 parent 2e3dbd7 commit 004789f070c5b13b89ee698f8b841b7a4c05f06a @stuffmc stuffmc committed Feb 27, 2013
Showing with 46 additions and 358 deletions.
  1. +1 −0 Source/TDDatePickerController.h
  2. +1 −0 Source/TDDatePickerController.m
  3. +44 −358 Source/TDDatePickerController.xib
@@ -15,6 +15,7 @@
@property (nonatomic, strong) IBOutlet id delegate;
@property (nonatomic, strong) IBOutlet UIDatePicker* datePicker;
+@property (weak, nonatomic) IBOutlet UIToolbar *toolbar;
-(IBAction)saveDateEdit:(id)sender;
-(IBAction)clearDateEdit:(id)sender;
@@ -62,6 +62,7 @@ - (void)didReceiveMemoryWarning {
}
- (void)viewDidUnload {
+ [self setToolbar:nil];
[super viewDidUnload];
self.datePicker = nil;
Oops, something went wrong.

0 comments on commit 004789f

Please sign in to comment.