Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bumping slide in landscape #120

Open
stefat opened this issue Feb 25, 2015 · 1 comment
Open

bumping slide in landscape #120

stefat opened this issue Feb 25, 2015 · 1 comment
Labels

Comments

@stefat
Copy link

stefat commented Feb 25, 2015

I'm using your controller (BTW: great, thank you) in iOS 8.1, in Swift: in portrait - no problem. In landscape I see a weird bump, similar to a collision, while dragging the view. I've made a short movie you may find here:
https://www.dropbox.com/s/p55s88a1js9chxl/iOS%20SimulatorScreenSnapz001.mov?dl=0
You may find below my few lines of codes for this issue.
Any hint to fix ? It is really annoying for the user.
Thank you for any help on this
stefat
// MARK: ########## Installazione del SideController come rootView del keyWindow ################
let story = UIStoryboard(name: "Main", bundle: nil)
self.leftTabelController = story.instantiateViewControllerWithIdentifier("mySideTableController") as SideTableViewController!
self.mySideController = PPRevealSideViewController(rootViewController: self.navigationController)
UIApplication.sharedApplication().keyWindow?.rootViewController = mySideController
self.mySideController!.panInteractionsWhenClosed = UInt(PPRevealSideInteractionContentView + PPRevealSideInteractionNavigationBar)
self.mySideController!.directionsToShowBounce = UInt(PPRevealSideDirectionNone)
self.mySideController!.options = UInt(PPRevealSideOptionsKeepOffsetOnRotation)
self.mySideController!.delegate = self
... and at click on button to open the side view
// MARK: ########## Lancio del SideController ################
var offset:CGFloat = 80.0
self.mySideController!.pushViewController(leftTabelController, onDirection: UInt(PPRevealSideDirectionLeft), withOffset: offset, animated: true )
// d'ora in poi attiva il bounce ...
self.mySideController!.directionsToShowBounce = UInt(PPRevealSideDirectionLeft)

@ipodishima
Copy link
Contributor

Hi

Sorry about the delay. If you found a solution or drop this, please consider closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants