Skip to content
Open
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
1 change: 1 addition & 0 deletions TTAlertView/TTAlertView.m
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ - (void)addButtonWithTitle:(NSString *)title
[otherButton addTarget:self action:@selector(otherButtonAction:) forControlEvents:UIControlEventTouchUpInside];
[otherButton setTitle:title forState:UIControlStateNormal];
[self.containerView addSubview:otherButton];
if (self.firstOtherButtonIndex < 0) _firstOtherButtonIndex = MAX(_cancelButtonIndex, 0) + 1;
[self.buttons insertObject:otherButton atIndex:([self.buttons count] - 1) + self.firstOtherButtonIndex];

if(self.isVisible) {
Expand Down