Skip to content

Commit

Permalink
temporarily suppressed the deprecated warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangao0086 committed Oct 28, 2015
1 parent 6f88359 commit ec078af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DKImagePickerController/DKPopoverViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ class DKPopoverViewController: UIViewController {
self.view.addSubview(popoverView)
}

@available(iOS, deprecated=8.0)
override func didRotateFromInterfaceOrientation(fromInterfaceOrientation: UIInterfaceOrientation) {
super.didRotateFromInterfaceOrientation(fromInterfaceOrientation)
super.didRotateFromInterfaceOrientation(fromInterfaceOrientation)
let popoverY = self.fromView.convertPoint(self.fromView.frame.origin, toView: self.view).y + self.fromView.bounds.height
self.popoverViewHeight = min(self.contentViewController.preferredContentSize.height + self.popoverView.arrowHeight, self.view.bounds.height - popoverY - 40)

Expand Down

0 comments on commit ec078af

Please sign in to comment.