ios9

UIImagePickerController does not work correct on ios 9.3 iPad 4

此生再无相见时 提交于 2019-11-28 20:31:06
问题 After update ipad to ios 9.3 images are stop to display. What can be wrong with it? On iOS 9 and iOS 9.2 that was work as well. On other devices iPhone devices all work fine. private func presentPickerForLibrary() { let imagePicker = UIImagePickerController() imagePicker.allowsEditing = false imagePicker.sourceType = .PhotoLibrary imagePicker.delegate = self presentViewController(imagePicker, animated: true, completion: nil) } 回答1: Seems to be linked to iCloud Photo Library setting. Turning

setStatusBarHidden is deprecated in iOS 9.0

自闭症网瘾萝莉.ら 提交于 2019-11-28 20:06:16
I am upgrading my code from iOS 8 to iOS 9. I have a code snippet in my program [[UIApplication applicationName] setStatusBarHidden:YES]; . I am getting the warning "setStatusBarHidden is deprecated in iOS 9.0, Use -[UIViewController prefersStatusBarHidden". If I just replace 'setStatusBarHidden' with 'prefersStatusBarHidden', I get 'instance method not found'. Can someone please suggest me how to solve this problem? Add below code to your view controller.. - (BOOL)prefersStatusBarHidden { return NO; } Note : If you change the return value for this method, call the

Enterprise (in-house) Swift application quits on launch on iOS9

橙三吉。 提交于 2019-11-28 19:44:00
We find that our Swift application signed by in house certificate cannot run on iOS9 while it works correctly on iOS8. We have trusted the developer on settings -> general -> profiles, but when we try to launch the app, it gets stuck on the launch screen and then quits. We don't have any clue from the logs. It only tells that it failed to launch after 20.00s. I suspect that is an issue related to the signing. Because when I sign the application with an AdHoc certificate, it has no problem in running on iOS9. Doesn't anybody know what is going on ? Seems to related to these issues Ad-Hoc

UICollectionView iOS 9 issue on project with RTL languages support

北战南征 提交于 2019-11-28 19:13:20
It seems like Apple's new feature of auto-flip interface on RTL languages cause problems when using UICollectionView . I used constraints of type Trailing/Leading for the collection view and they switched their values, as they should, on RTL language. The problem is that the data actually presented is of the last indexPath in the collection's data source but the UIScrollView.contentOffset.x of the first cell is 0. A proper behaviour would have been one of the following: Displaying the first indexPath correctly and switching the direction of the scroll (to the right) - Best option Not flipping

UIStackView - Distribute views evenly from the centre

徘徊边缘 提交于 2019-11-28 18:58:54
问题 I have a UIStackView ,inside a UIScrollView to show dynamically added subviews horizontally arranged. Current solution will start displaying items from the left, I would like to start distributing items from the centre without changing the width and height of the subviews. How do I do that? Im also open to solutions which doesn't use UIStackView as well. That way I could support devices < iOS9. ( Current ) ( Expected ) 回答1: Short answer : ScrollView constraints Leading >= 0, Trailing >= 0,

iOS 9 app download from Amazon S3 SSL error: TLS 1.2 support

两盒软妹~` 提交于 2019-11-28 18:29:25
问题 I get An SSL error has occurred and a secure connection to the server cannot be made. on iOS 9 if I try to download a file from amazon s3: https://s3.amazonaws.com/xyz/qer/IMG_0001.JPG From what I understand Amazon s3 supports TLS 1.2 see: https://forums.aws.amazon.com/thread.jspa?threadID=192512 S3 and Kinesis support TLS 1.2 at this time. "S3 and Kinesis support TLS 1.2 at this time." Aug 23, 2015 9:19 PM Not sure then why do I get this SSL error. The account should be configured to take

What's the height of a UITabBar on iOS 8, iOS 9, iOS 10, and iOS 11?

折月煮酒 提交于 2019-11-28 18:23:45
问题 The height of the UITabBar seems to have changed between iOS 7 and 8/9/10/11. I'm posting this question for others to easily find the answer. So: What's the height of a UITabBar on iOS 8/9/10/11 on iPhone and iPad? 回答1: For iOS 8, 9, and 10 the height is 49 points , both on iPad and iPhone and both in portrait and landscape. It used to be 56 points on iOS 7. For iOS 11, things get a bit more complicated: In portrait and regular landscape , the height is still 49 points . In compact landscape

changing property contentsGravity in transform-only layer, will have no effect

血红的双手。 提交于 2019-11-28 18:18:42
问题 I started to create a very simple tic-tac-toe game. The main goal is to make the view proportional to all screen sizes of all iOS devices. So I put the image on a ViewController , make it full size of screen and then I put it into a Stack View. I've added constrains to this Stack View 0 to all sides. And when I ran the simulator then everything looks good. But I receive a message in console panel. What does it mean? 回答1: It could happen because you changed the Mode attribute of the StackView:

How to get monospaced numbers in UILabel on iOS 9

℡╲_俬逩灬. 提交于 2019-11-28 17:52:32
At WWDC 2015, there was a session about the new “San Francisco” system font in iOS 9. It uses proportional number rendering instead of monospaced numbers by default when linked against the iOS 9 SDK. There is a convenient initializer on NSFont called NSFont.monospacedDigitsSystemFontOfSize(mySize weight:) that can be used to explicitly enable monospaced number display. However I couldn't find the UIKit equivalent for this on UIFont . Rudolf Adamkovič Handy UIFont extension: extension UIFont { var monospacedDigitFont: UIFont { let newFontDescriptor = fontDescriptor.monospacedDigitFontDescriptor

UIAlertController:supportedInterfaceOrientations was invoked recursively

百般思念 提交于 2019-11-28 17:24:07
问题 When two alert present one by one, i means one alert present and over them another alert presenting and app crashing. I have used UIAlertController to display alert. App crashing only in iOS 9 device. Please help me at this point. 回答1: This is a bug in iOS 9 that it failed to retrieve the supportedInterfaceOrientations for UIAlertController . And it seems it dropped to an infinite recursion loop in looking for the supportedInterfaceOrientations for UIAlertController (e.g., it tracks back to