Skip to content

Commit 63c41dd

Browse files
committed
Weak Delegate
Putting your WYPopoverController delegate to weak to avoid having to set it to nil in controller's delegate callback.
1 parent 46672b7 commit 63c41dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WYPopoverController/WYPopoverController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ typedef NS_OPTIONS(NSUInteger, WYPopoverArrowDirection) {
8181
{
8282
}
8383

84-
@property (nonatomic, assign) id <WYPopoverControllerDelegate> delegate;
84+
@property (nonatomic, weak) id <WYPopoverControllerDelegate> delegate;
8585

8686
@property (nonatomic, copy) NSArray *passthroughViews;
8787

0 commit comments

Comments
 (0)