Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Convert RISimpleAction in UIActionSheet+Blocks to void block literal #17

Merged
merged 1 commit into from

2 participants

@slevin

RISimpleAction typedef does not exist in these files anymore, so this class wasn't compiling. Changed to literals to match UIAlertView+Blocks

@slevin slevin replace RISimpleAction with void block literals
RISimpleAction typedef does not exist in these files, so this class wasn't compiling. Changed to literals to match UIAlertView+Blocks
5973be8
@jivadevoe jivadevoe merged commit b6619b2 into jivadevoe:master
@jivadevoe
Owner

Thank you sir!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 30, 2012
  1. @slevin

    replace RISimpleAction with void block literals

    slevin authored
    RISimpleAction typedef does not exist in these files, so this class wasn't compiling. Changed to literals to match UIAlertView+Blocks
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +1 −1  UIActionSheet+Blocks.h
  2. +2 −2 UIActionSheet+Blocks.m
View
2  UIActionSheet+Blocks.h
@@ -17,6 +17,6 @@
/** This block is called when the action sheet is dismssed for any reason.
*/
-@property (copy, nonatomic) RISimpleAction dismissalAction;
+@property (copy, nonatomic) void(^dismissalAction)();
@end
View
4 UIActionSheet+Blocks.m
@@ -67,13 +67,13 @@ - (NSInteger)addButtonItem:(RIButtonItem *)item
return buttonIndex;
}
-- (void)setDismissalAction:(RISimpleAction)dismissalAction
+- (void)setDismissalAction:(void(^)())dismissalAction
{
objc_setAssociatedObject(self, (__bridge const void *)RI_DISMISSAL_ACTION_KEY, nil, OBJC_ASSOCIATION_COPY);
objc_setAssociatedObject(self, (__bridge const void *)RI_DISMISSAL_ACTION_KEY, dismissalAction, OBJC_ASSOCIATION_COPY);
}
-- (RISimpleAction)dismissalAction
+- (void(^)())dismissalAction
{
return objc_getAssociatedObject(self, (__bridge const void *)RI_DISMISSAL_ACTION_KEY);
}
Something went wrong with that request. Please try again.