fastred / AHKActionSheet

An alternative to the UIActionSheet inspired by the Spotify app.
MIT License
1.16k stars 130 forks source link

provide support ios 6 and added one more method, that can accept list of titles array #5

Closed dKasabwala closed 10 years ago

fastred commented 10 years ago

Thanks! I'll merge the commit with iOS 6 support. I won't be merging another change, because the same API can be exposed via a category on AHKActionSheet, e.g.:

- (void)addButtonsWithTitles:(NSArray *)titles type:(AHKActionSheetButtonType)type handler:(AHKActionSheetHandler)handler
{
    for (NSString *title in titles) {
        [self addButtonWithTitle:title type:type handler:handler];
    }
}

Handler will be duplicated internally, but that shouldn't be an issue in this case.

fastred commented 10 years ago

I merged your changes in https://github.com/fastred/AHKActionSheet/commit/3c66bad0199a633b74d9bbecfdd6013615466dfc and released version 0.3.0 of the library: https://github.com/fastred/AHKActionSheet/commit/49d879f963caf39e7b7837b8dce0de36ae5954d4