Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions unity/NativeDialogPlugin/Assets/Plugins/iOS/UNDialogManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,14 @@ + (UNDialogManager*) sharedManager {

- (id) init {
alerts = [NSMutableDictionary dictionary];
[alerts retain];

return [super init];
}

- (void) dealloc {
[decideLabel release];
[cancelLabel release];
[closeLabel release];
[alerts release];
[super dealloc];
}

- (int) showSelectDialog:(NSString *)msg {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:msg delegate:self cancelButtonTitle:cancelLabel otherButtonTitles:decideLabel, nil];
alert.tag = ++_id;
[alert show];
[alert autorelease];

[alerts setObject:alert forKey:[NSNumber numberWithInt:_id]];
return _id;
}
Expand All @@ -91,8 +80,6 @@ - (int) showSelectDialog:(NSString *)title message:(NSString*)msg {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title message:msg delegate:self cancelButtonTitle:cancelLabel otherButtonTitles:decideLabel, nil];
alert.tag = ++_id;
[alert show];
[alert autorelease];

[alerts setObject:alert forKey:[NSNumber numberWithInt:_id]];
return _id;
}
Expand All @@ -101,8 +88,6 @@ - (int) showSubmitDialog:(NSString *)msg {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:msg delegate:self cancelButtonTitle:nil otherButtonTitles:closeLabel, nil];
alert.tag = ++_id;
[alert show];
[alert autorelease];

[alerts setObject:alert forKey:[NSNumber numberWithInt:_id]];
return _id;
}
Expand All @@ -111,8 +96,6 @@ - (int) showSubmitDialog:(NSString *)title message:(NSString*)msg {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title message:msg delegate:self cancelButtonTitle:nil otherButtonTitles:closeLabel, nil];
alert.tag = ++_id;
[alert show];
[alert autorelease];

[alerts setObject:alert forKey:[NSNumber numberWithInt:_id]];
return _id;
}
Expand All @@ -124,17 +107,9 @@ - (void) dissmissDialog:(int)theID {
}

- (void) setLabelTitleWithDecide:(NSString*)decide cancel:(NSString*)cancel close:(NSString*) close {
[decideLabel release];
[cancelLabel release];
[closeLabel release];

decideLabel = [NSString stringWithString:decide];
cancelLabel = [NSString stringWithString:cancel];
closeLabel = [NSString stringWithString:close];

[decideLabel retain];
[cancelLabel retain];
[closeLabel retain];
}

// delegate
Expand Down