nicklockwood / iVersion

[DEPRECATED]
http://www.charcoaldesign.co.uk/source/cocoa#iversion
Other
1.95k stars 292 forks source link

UIAlertView buttons don't work! (1.11.2) #70

Closed TRIMER closed 9 years ago

TRIMER commented 9 years ago

I'am using version 1.11.2. Alert shows 3 buttons:

But texts doesn't equal to button actions. For example 'Skip' button opens AppStore and 'Update' button skips this version.

Problem here:

- (void)didDismissAlert:(id)alertView withButtonAtIndex:(NSInteger)buttonIndex
{
    //get button indices
    NSInteger downloadButtonIndex = 0;
    NSInteger ignoreButtonIndex = [self showIgnoreButton]? 1: 0;
    NSInteger remindButtonIndex = [self showRemindButton]? ignoreButtonIndex + 1: 0;
    ...

Real 'downloadButtonIndex' is 1 etc. Please fix it.

nicklockwood commented 9 years ago

Fixed in 1.11.4.