Skip to content

Pragmas to quite the compiler, patch #14

Description

@wmalloc

diff --git a/UIActionSheet+Blocks.m b/UIActionSheet+Blocks.m
index f155547..6b8c8e5 100644
--- a/UIActionSheet+Blocks.m
+++ b/UIActionSheet+Blocks.m
@@ -69,6 +69,7 @@ static NSString *RI_BUTTON_ASS_KEY = @"com.random-ideas.BUTTONS";

  • (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex
    {
    +#pragma unused(actionSheet)
    if (buttonIndex != -1)
    {
    NSArray *buttonsArray = objc_getAssociatedObject(self, RI_BUTTON_ASS_KEY);
    diff --git a/UIAlertView+Blocks.m b/UIAlertView+Blocks.m
    index 2764467..93522fa 100644
    --- a/UIAlertView+Blocks.m
    +++ b/UIAlertView+Blocks.m
    @@ -60,6 +60,7 @@ static NSString *RI_BUTTON_ASS_KEY = @"com.random-ideas.BUTTONS";
  • (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
    {
    +#pragma unused(alertView)
    NSArray *buttonsArray = objc_getAssociatedObject(self, RI_BUTTON_ASS_KEY);
    RIButtonItem *item = [buttonsArray objectAtIndex:buttonIndex];
    if(item.action)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions