Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
OptionDialog, remember thyself, too!
Browse files Browse the repository at this point in the history
  • Loading branch information
Blain Hamon committed Apr 9, 2011
1 parent 2ff046c commit ec85279
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iphone/Classes/TiUIOptionDialogProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ -(void)show:(id)args
ENSURE_SINGLE_ARG_OR_NIL(args,NSDictionary);
ENSURE_UI_THREAD(show,args);

[self rememberSelf];
NSMutableArray *options = [self valueForKey:@"options"];
if (options==nil)
{
Expand Down Expand Up @@ -95,6 +96,7 @@ - (void)actionSheet:(UIActionSheet *)actionSheet_ clickedButtonAtIndex:(NSIntege
[self fireEvent:@"click" withObject:event];
}
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationWillChangeStatusBarOrientationNotification object:nil];
[self forgetSelf];
[self release];
}

Expand Down

0 comments on commit ec85279

Please sign in to comment.