ios11

Creating Launch Screen.xib for iOS8 ( … iOS11, Swift 4 and LaunchScreen.storyboard )

倾然丶 夕夏残阳落幕 提交于 2019-12-22 04:19:48
问题 I've just found out that in order to be able to have the description for your app in the app store say "This app is optimized for iPhone 6, and iPhone 6 Plus." you need to use a launch XIB or storyboard file for your launch images (per [Apple][1]). So, I've created a new Launch Screen xib and now I'm a little but since I usually do everything in code and don't use interface builder. I've deleted the default label that is inserted and dropped a UIImageView into the view. Now I'm wondering how

iOS 11 : Cellular Signal strength

你离开我真会死。 提交于 2019-12-21 21:15:07
问题 I was fetching Cellular Signal Strength(iOS < 11) as mentioned below, but in iOS 11 , signalStrength is always 0 let statusBarView = UIApplication.shared.value(forKey: "statusBar") as? UIView if let foregroundView = statusBarView?.value(forKey: "foregroundView") as? UIView { let subiews = foregroundView.subviews var dataNetworkItemView:UIView? for subview in subiews { if subview.isKind(of: NSClassFromString("UIStatusBarSignalStrengthItemView")!) == true { dataNetworkItemView = subview break }

How to check iOS11 Screen Recording is On or Off?

浪子不回头ぞ 提交于 2019-12-21 18:05:46
问题 For detecting iOS11 screen recording feature On or Off I used isCaptured and UIScreenCapturedDidChange Notification. When first time I Launch the App and On iOS11 built-in screen recording feature then it notifies the selector method with value True, but when I kill (terminate) my running App and Launch app again do the same procedure again then my selector method is not getting called. Here is my code: I add an Observer in ViewWillAppear() method: NotificationCenter.default.addObserver(self,

iOS 11 PDFKit not updating annotation position

你。 提交于 2019-12-21 06:37:08
问题 I'm building an app to edit PDFs on iPad. I'm trying to implement the dragging of the annotations with a panGesture recognizer that I added to the superview of the PDFView. The problem is that the new rect bounds of the annotation gets assigned but the changes doesn't reflect on screen. Here is my code: @objc func handlePanGesture(panGesture: UIPanGestureRecognizer) { let touchLocation = panGesture.location(in: pdfView) guard let page = pdfView.page(for: touchLocation, nearest: true) else {

SFAuthenticationSession isn't sharing cookies on the real devices

狂风中的少年 提交于 2019-12-21 05:14:20
问题 I'm using AppAuth-iOS for SSO. Everything works just fine on the ios 11 simulators and SSO (cookies sharing) doesn't work on the real devices running 11.0.0, 11.0.1, 11.0.2. So is the SFAuthenticationSession broken and is there any known workaround? 回答1: I am also facing the same issue and based on my tests and research, yes it is broken. SFAuthenticationSessions remember the cookies on a single application run, but not after the application has restarted or between multiple apps (= SSO). I

iOS 11 crashing with bundleProxy != nil error on using UNUserNotificationCenter

£可爱£侵袭症+ 提交于 2019-12-21 04:03:04
问题 The following line of code is where our app has suddenly started to crash on iOS 11 / 11.0.1 / 11.0.2 / 11.1.1 / 11.2.2 for some users: UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; We've got this in didFinishLaunchingWithOptions . The crash report says: Fatal Exception: NSInternalInconsistencyException Invalid parameter not satisfying: bundleProxy != nil Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x1869b3d38 _

How to calculate iOS 11 size in different orientation?

可紊 提交于 2019-12-21 03:33:14
问题 I calculate itemSize dependent on safe area for UICollectionView with horizontal scroll and custom layout. But for iPhone X safe area has different size for different orientation. My question is how should I calculate safe area size for landscape orientation in viewWillTransition function? Or how is it possible to do without this calculation? 回答1: EDIT To get safe area size without creating any additional views, use this: view.safeAreaLayoutGuide.layoutFrame.size If you want to use

ARKit vs SceneKit coordinates

删除回忆录丶 提交于 2019-12-20 20:19:19
问题 I'm trying to understand the difference between the different element introduced in ArKit and their maybe equivalents in SceneKit: SCNNode.simdTransform vs SCNNode.transform . In ARKit, it seems that people use SCNNode.simdTransform instead of SCNNode.transform . How do they differ? simdTransform seems to use column major order, while transform (SCNMatrix4) is row major. How do I convert one to the other? Just transpose? I've the impression that the tracking doesn't work as well if I use

PDFAnnotation with PDFAnnotationSubtype equal to .widget is not refreshing its appearance after adding it to PDFPage

谁说胖子不能爱 提交于 2019-12-20 19:42:32
问题 After adding annotation to PDFPage (and rendering it on a screen), there is no way to update its appearance on PDFPage / PDFView . To reproduce the problem: Create PDFAnnotation and add it to the PDFPage : let bounds = CGRect(x: 20.0, y: 20.0, width: 200.0, height: 200.0) let annotation = PDFAnnotation(bounds: b, forType: .widget, withProperties: nil) annotation.widgetFieldType = .text annotation.backgroundColor = .gray annotation.font = .systemFont(ofSize: 18) annotation.widgetStringValue =

Autoresizing not working in iOS11 / XCode 9

孤街醉人 提交于 2019-12-20 14:06:39
问题 It appears that the Autoresizing of views is no longer reliably working when building for iOS11 with XCode 9. The layout of several views end up with the positioning of controls as they are in the XIB, but the appropriate resizing has not happened. This has been working fine in iOS10, and works with our old app running in iOS11. However, rebuilding the app the positioning and sizing fails. Has something changed that impacts the use of autoresizingmask ? Is there a way to automatically convert