Skip to content

Commit 5973be8

Browse files
committed
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
1 parent d973d67 commit 5973be8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: UIActionSheet+Blocks.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717

1818
/** This block is called when the action sheet is dismssed for any reason.
1919
*/
20-
@property (copy, nonatomic) RISimpleAction dismissalAction;
20+
@property (copy, nonatomic) void(^dismissalAction)();
2121

2222
@end

Diff for: UIActionSheet+Blocks.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ - (NSInteger)addButtonItem:(RIButtonItem *)item
6767
return buttonIndex;
6868
}
6969

70-
- (void)setDismissalAction:(RISimpleAction)dismissalAction
70+
- (void)setDismissalAction:(void(^)())dismissalAction
7171
{
7272
objc_setAssociatedObject(self, (__bridge const void *)RI_DISMISSAL_ACTION_KEY, nil, OBJC_ASSOCIATION_COPY);
7373
objc_setAssociatedObject(self, (__bridge const void *)RI_DISMISSAL_ACTION_KEY, dismissalAction, OBJC_ASSOCIATION_COPY);
7474
}
7575

76-
- (RISimpleAction)dismissalAction
76+
- (void(^)())dismissalAction
7777
{
7878
return objc_getAssociatedObject(self, (__bridge const void *)RI_DISMISSAL_ACTION_KEY);
7979
}

0 commit comments

Comments
 (0)