ios11

Cant change navigation bar height ios 11

微笑、不失礼 提交于 2021-02-18 19:12:27
问题 I cant change navigation bar frame in ios 11. Here is sample of my code for ios 10: if let navigationBar = self.navigationController?.navigationBar { let frame = CGRect(x: navigationBar.frame.origin.x, y: navigationBar.frame.origin.y, width: navigationBar.frame.width, height: navigationBar.frame.height + 100) navigationBar.frame = frame } ios 10 and ios 11 screenshots respectively 回答1: Changing the height of the UINavigationBar is no longer directly supported in iOS 11 (see here, here & here)

How to detect if another app is running as slide over in iOS 11?

社会主义新天地 提交于 2021-02-17 15:24:49
问题 The multitasking features got updates in iOS 11, one of those was slide over which is demonstrated in the gif below. With these changes it's no longer possible to use the techniques that check frame size from iOS 9 to detect if another app is a "slide over" over my app. Is there any new method to detect if another app is running as slide over? 回答1: I was able to get this working fairly easily on an iPad Pro (which supports side-by-side apps, not just slide-overs). Here's the code: class

How to detect if another app is running as slide over in iOS 11?

五迷三道 提交于 2021-02-17 15:24:30
问题 The multitasking features got updates in iOS 11, one of those was slide over which is demonstrated in the gif below. With these changes it's no longer possible to use the techniques that check frame size from iOS 9 to detect if another app is a "slide over" over my app. Is there any new method to detect if another app is running as slide over? 回答1: I was able to get this working fairly easily on an iPad Pro (which supports side-by-side apps, not just slide-overs). Here's the code: class

in iOS 11 the keyboard autocorrect creates invalid UTF8

我是研究僧i 提交于 2021-02-08 11:15:42
问题 Our app accepts user text input which we then save to a server-side database. In iOS 11 when you enter two "-" characters in a row they are automatically combined into an emdash (—). When you enter three "-" characters in a row you end up with an emdash + a half emdash which has an invalid terminator. This is causing issues for my rails server which cannot parse this string because it is invalid. The string looks like this: \xE2\x80\x94\x00 回答1: 'Smart dashes' as it is called, is the process

in iOS 11 the keyboard autocorrect creates invalid UTF8

随声附和 提交于 2021-02-08 11:14:11
问题 Our app accepts user text input which we then save to a server-side database. In iOS 11 when you enter two "-" characters in a row they are automatically combined into an emdash (—). When you enter three "-" characters in a row you end up with an emdash + a half emdash which has an invalid terminator. This is causing issues for my rails server which cannot parse this string because it is invalid. The string looks like this: \xE2\x80\x94\x00 回答1: 'Smart dashes' as it is called, is the process

UIDocumentInteractionController does not open other app in iOS 11

。_饼干妹妹 提交于 2021-02-07 19:08:18
问题 My apps ability to share a PDF to another third party app has broken in iOS 11. It shows the share sheet but when I choose to open it in a different (third-party) app, it simply dismisses the share sheet and does nothing. Things I've confirmed: The delegate methods for willBeginSending and didEndSending are both called Opening first party apps like Mail or Notes works fine The document picker is still in memory Presenting a preview works fine but then the share button from inside the preview

How to disable “Save To Files” in iOS 11?

∥☆過路亽.° 提交于 2021-02-07 14:20:36
问题 I have an iOS app which creates a PDF and is shared using the UIActivityViewController using the default share functionality. I had to block a few sharing facilities like Vimeo, Facebook, Twillio, etc. and also the file should not be stored on the device. With the new iOS 11 version, Apple has provided SaveToFiles option with the default share functionality. I tried using excludedActivityTypes, and with blocking the "com.apple.CloudDocsUI.AddToiCloudDrive" option, but no success. Can anyone

add download button for pdf in wkwebview in swift 4

喜欢而已 提交于 2021-02-07 13:41:26
问题 I have done webview app using wkwebiew in xcode 9. In the website, there are some part need to download the pdf file, the pdf file can be view only but how to make it can be download to our iphone. can you share some tip to me, this is my code class ViewController: UIViewController,WKNavigationDelegate,UIWebViewDelegate { @IBOutlet weak var activityIndicator: UIActivityIndicatorView! @IBOutlet weak var webView: WKWebView! @IBOutlet var containerView: UIView? = nil @IBOutlet weak var

add download button for pdf in wkwebview in swift 4

好久不见. 提交于 2021-02-07 13:38:23
问题 I have done webview app using wkwebiew in xcode 9. In the website, there are some part need to download the pdf file, the pdf file can be view only but how to make it can be download to our iphone. can you share some tip to me, this is my code class ViewController: UIViewController,WKNavigationDelegate,UIWebViewDelegate { @IBOutlet weak var activityIndicator: UIActivityIndicatorView! @IBOutlet weak var webView: WKWebView! @IBOutlet var containerView: UIView? = nil @IBOutlet weak var

UIRefreshControl not showing in landscape when in a navigation controller with large titles

我的未来我决定 提交于 2021-02-07 09:16:15
问题 I have a plain UITableViewController embedded in a UINavigationController which prefers large titles . I added a refresh control to my table view controller. On iPhone in iOS 11, if I launch my app in portrait mode, switch to landscape and begin refreshing the table view, the refresh control does not show up . The refresh happens, but the control is just not present. It's not even in the view hierarchy: Note that the same does work on iPhone if I'm in portrait mode, and also on iPad in every