Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func navigationController(navigationController: UINavigationController, willShowViewController viewController: UIViewController, animated: Bool) {
- if (navigationController.viewControllers.count == 3) // Indicates UIImagePickerController editing view
- {
- // Remove default crop rect layer
- let plCropOverlay : UIView = viewController.view.subviews[1].subviews[0] as UIView
- plCropOverlay.hidden = true
- // Set bottom bar color
- let plBottomBar : UIView = viewController.view.subviews[1].subviews[1] as UIView
- plBottomBar.backgroundColor = UIColor.blackColor().colorWithAlphaComponent(0.8)
- // Set circular crop overlay
- let fillLayer : CAShapeLayer = CameraController.circleCropOverlayLayer(bottomOffset: 72.0)
- viewController.view.layer.addSublayer(fillLayer)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement