FDTake icon indicating copy to clipboard operation
FDTake copied to clipboard

Deprecated function in iOS 9.0

Open hafiz013 opened this issue 4 years ago • 9 comments

Hi there developer please update your function since it is depreciated inside ios 9.0.

UIApplication.shared.isStatusBarHidden = true

under class : extension FDTakeController : UIImagePickerControllerDelegate, UINavigationControllerDelegate

and under function public func imagePickerControllerDidCance

hafiz013 avatar Apr 13 '20 08:04 hafiz013

Currently we are targeting iPhone 5 and later. So this requires iOS 10.3.3.

Updated this in 36079b8. Just pushed.

This issue is valid. Looking for help to produce a pull request.

fulldecent avatar Apr 14 '20 03:04 fulldecent

so i use pod. so what to do with this? should i reinstall this pod library?

hafiz013 avatar Apr 14 '20 09:04 hafiz013

The change above is a build setting only and does not remove the warning you see. Also we have not published it. So there reinstalling will do nothing.

If somebody can help to fix the warning you found I will release the update.

fulldecent avatar Apr 15 '20 01:04 fulldecent

have i mention above the code problem and where to fix it isn't?

hafiz013 avatar Apr 15 '20 02:04 hafiz013

class ViewController: UIViewController { var isHidden:Bool = false{ didSet{ UIView.animate(withDuration: 0.5) { () -> Void in self.setNeedsStatusBarAppearanceUpdate() }
} } @IBAction func clicked(sender: AnyObject) { isHidden = !isHidden } override var preferredStatusBarUpdateAnimation: UIStatusBarAnimation{ return .slide } override var prefersStatusBarHidden: Bool{ return isHidden } }

as mention a lot of stackoverflow they recommend to use "set prefersStatusBarHidden". I hope u change u code. @fulldecent

hafiz013 avatar Apr 16 '20 01:04 hafiz013

The work plan for this issue is to use the deprecated function only if running on iOS 9. Otherwise it should use workaround.

fulldecent avatar Mar 15 '21 20:03 fulldecent

please update minimum ios to up 10 above. Because old iphone no more support. Please update u library 3.0.1.

@fulldecent

hafiz013 avatar Mar 16 '21 02:03 hafiz013

iOS was released as recently as two years ago. https://en.wikipedia.org/wiki/IOS_9

This project is designed to run on a wide variety of devices so our target is to support the union of whatever versions of iOS that other projects need.

We will require strong evidence that no applications are targeting iOS 9 in order to consider dropping iOS 9 support.

fulldecent avatar Mar 16 '21 02:03 fulldecent

if that case can u build this library do if else let say if build version ios 9 use this function else use function support for ios 10. @fulldecent

hafiz013 avatar Mar 16 '21 04:03 hafiz013