I am written below code in a button click function.
- (IBAction)btnPlusClicked:(id)sender forEvent:(UIEvent *)event {
//show popover controller
TSActionSheet* actionSheet = [[TSActionSheet alloc] initWithTitle:nil];
[actionSheet addButtonWithTitle:@"Add New" block:^{
//add new button clicked
[self showAddNewView:0];
}];
[actionSheet addButtonWithTitle:@"Copy Yesterday" block:^{
//Copy yesterday clicked
[self showAddNewView:1];
}];
[actionSheet addButtonWithTitle:@"Copy from Date" block:^{
//Copy from date clicked
//show date picker
[self showDatePicker];
}];
actionSheet.cornerRadius = 5;
[actionSheet showWithTouch:event];
}
when above code executes then the -(void)dealloc
method of this view controller does not fire on below function of back button touch up inside event.
- (IBAction)btnBackClicked:(id)sender {
[self.navigationController popViewControllerAnimated:animated];
}
-(void)dealloc
{
NSLog(@"-->deallalloc in %@", [self class]);
}
Note that app is ARC compatible.
is there any solution?