Skip to content

bumping slide in landscape  #120

Description

@stefat

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions