ipup/PPRevealSideViewController

App get crashed in first time

Closed this issue · 3 comments

I have one simple app. I want to add there Sliding controller. I have successfully added
PRRevealViewController.h , m file.

After just starting the left sliding half of screen is being sliding then it goes to crash in below code:

[self pushOldViewControllerOnDirection:_currentPanDirection
withOffset:[self getOffsetForDirection:_currentPanDirection andInterfaceOrientation:UIInterfaceOrientationPortrait]
animated:YES
completion:nil];
_shouldNotCloseWhenPushingSameDirection = NO;

Please let me know what i am doing mistake to execute your code successfully.

Sure I am doing some Mistake please suggest me, I am not able to sliding in my App.

Thanks
Tikam

Hi

What's the crash stack?
What are you doing with which code?

Get Crashed to when this method is called by PPRevealSideViewController Framwork.
if (animated) {
[UIView animateWithDuration:animationTime
delay:0.0
options:options
animations:openAnimBlock
completion:^(BOOL finished) {
if ([self canCrossOffsets]) { // then we come to normal
[UIView animateWithDuration:OpenAnimationTime * OpenAnimationTimeBouncingRatio
delay:0.0
options:options
animations:^{
_rootViewController.view.frame = [self getSlidingRectForOffset:offset forDirection:direction];
} completion:^(BOOL finished) {
if (offset == 0.0) {
[UIView animateWithDuration:0.1
animations:^{
_rootViewController.view.alpha = 0.0;
}

                                                                       completion:^(BOOL finished) {
                                                                           _animationInProgress = NO;
                                                                           if (completionBlock) completionBlock();
                                                                       }];
                                                  } else {
                                                      _animationInProgress = NO;
                                                  }

                                                  if (PPSystemVersionGreaterOrEqualThan(5.0)) [controller didMoveToParentViewController:self];
                                                  if (completionBlock) completionBlock();

                                                  [self informDelegateWithOptionalSelector:@selector(pprevealSideViewController:didPushController:) withParam:controller];
                                              }];
                         } else {
                             _animationInProgress = NO;
                             if (PPSystemVersionGreaterOrEqualThan(5.0)) [controller didMoveToParentViewController:self];
                             if (completionBlock) completionBlock();
                             [self informDelegateWithOptionalSelector:@selector(pprevealSideViewController:didPushController:) withParam:controller];
                         }
                     }];
} else {
    openAnimBlock();
    _animationInProgress = NO;
    if (PPSystemVersionGreaterOrEqualThan(5.0)) [controller didMoveToParentViewController:self];
    if (completionBlock) completionBlock();
    [self informDelegateWithOptionalSelector:@selector(pprevealSideViewController:didPushController:) withParam:controller];
}

Hi

I can't do anything with what you said. I need the stack trace when crashing, with which kind of crash (bad access, exception, ...) and more important, the code you are using! I have absolutely no crash at all on PPReveal with my use, and you ask me what you are doing wrong but I don't know what you are doing. Please let me know, otherwise I can't help you