File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
ECSlidingViewController/Vendor/ECSlidingViewController Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ extern NSString *const ECSlidingViewTopDidAnchorLeft;
27
27
/* * Notification that gets posted when the top view is anchored to the right side of the screen */
28
28
extern NSString *const ECSlidingViewTopDidAnchorRight;
29
29
30
+ /* * Notification that gets posted when the top view will be centered on the screen */
31
+ extern NSString *const ECSlidingViewTopWillReset;
32
+
30
33
/* * Notification that gets posted when the top view is centered on the screen */
31
34
extern NSString *const ECSlidingViewTopDidReset;
32
35
Original file line number Diff line number Diff line change 14
14
NSString *const ECSlidingViewUnderRightWillDisappear = @" ECSlidingViewUnderRightWillDisappear" ;
15
15
NSString *const ECSlidingViewTopDidAnchorLeft = @" ECSlidingViewTopDidAnchorLeft" ;
16
16
NSString *const ECSlidingViewTopDidAnchorRight = @" ECSlidingViewTopDidAnchorRight" ;
17
+ NSString *const ECSlidingViewTopWillReset = @" ECSlidingViewTopWillReset" ;
17
18
NSString *const ECSlidingViewTopDidReset = @" ECSlidingViewTopDidReset" ;
18
19
19
20
@interface ECSlidingViewController ()
@@ -358,6 +359,9 @@ - (void)anchorTopViewOffScreenTo:(ECSide)side animations:(void(^)())animations o
358
359
359
360
- (void )resetTopView
360
361
{
362
+ dispatch_async (dispatch_get_main_queue (), ^{
363
+ [[NSNotificationCenter defaultCenter ] postNotificationName: ECSlidingViewTopWillReset object: self userInfo: nil ];
364
+ });
361
365
[self resetTopViewWithAnimations: nil onComplete: nil ];
362
366
}
363
367
You can’t perform that action at this time.
0 commit comments