ios11

bottom layout deprecated since ios 11.0

一曲冷凌霜 提交于 2019-12-03 16:27:09
问题 What can I do to fix Bottom layout is deprecated iOS 11, I am using Xcode 9 beta 2. 回答1: Simply check the "Use safe area layout guides" button in the File Inspector of the IB. 回答2: Function of @paper1111 works fine in Xcode Version 9.3.1, but for me not worked first time. After two days of World War with Interface Builder Solution: 1) check the "Use safe area layout guides" button in the File Inspector of the Interface Builder. 2) uncheck the "Use safe area layout guides" button in the File

SFAuthenticationSession isn't sharing cookies on the real devices

江枫思渺然 提交于 2019-12-03 16:13:05
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? 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 have done a series of tests with iOS 11.1 beta 1 and Xcode 9.1 beta 1 with following results: Using the

iOS 11: Pop view controller with scrollView inside navigation controller with opaque navbar result in weird content animation during transition

若如初见. 提交于 2019-12-03 15:29:10
Pop view controller with scrollView inside navigation controller with opaque navbar result in weird content animation during transition The content will be somewhere below its original position during transition, and interactive pop will make this very obvious. Enabling Safe area does not fix this. It is a bug in iOS 11 I believe. Here's a rdar about it: http://openradar.appspot.com/34465226 You can walk around this issue by check the Extend Edges: Under Opaque Bars box in storyboard or set [self setExtendedLayoutIncludesOpaqueBars:YES] manually in code. 来源: https://stackoverflow.com/questions

How to check if annotation is clustered (MKMarkerAnnotationView and Cluster)

社会主义新天地 提交于 2019-12-03 15:11:55
问题 I'm trying to work with the new features added to the mapview in ios11. I'm clustering all my MKAnnotationView with circle collision but I have to check in real time when the annotation becomes clustered. I have no idea how to do that. EDIT (4/1/2018) : More informations : When I select an annotation I add a custom CallOutView when the didSelect method is called and remove the CallOut when the didDeselect method is called. The issue is when an annotation is selected and becomes clustered,

iOS 11 Prevent Screen Record like Netflix

放肆的年华 提交于 2019-12-03 14:54:29
I have video playing in my application which I don't want to be recorded. What Netflix application do is that they let the audio capture but not the video while screen is being recorded. Anyone have idea how to implement this feature? You can listen for a UIScreenCapturedDidChange notification. NotificationCenter.default.addObserver(self, selector: #selector(screenCaptureChanged), name: NSNotification.Name.UIScreenCapturedDidChange, object: nil) This is called when iOS 11 screen recording begins and ends. When the user is recording the screen, you can modify the UI to block any content that

Launch Image names of iPhoneX?

孤街浪徒 提交于 2019-12-03 14:50:37
问题 A question about iPhoneX. I want put Launch Image of iPhoneX( 1125px × 2436px) in common folder. Not in LaunchImage source. What's the Launch Image names of iPhoneX? just like 'Default-iOS8-736h@3x', I can not found the name in https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/launch-screen/ . 回答1: You can add static launch image for iPhone X, only add: Default-375w-812h@3x.png 回答2: Following the convention it should be named Default-812h@3x.png (and Default

iOS 11 - UINavigationItem titleView when using Large Titles mode

☆樱花仙子☆ 提交于 2019-12-03 13:21:09
问题 I'm trying to understand either it's a bug or it's the expected behavior. On iOS 10 and earlier we could set up a custom title, using navigationItem.titleView . On iOS 11 , when setting our navigationItem.largeTitleDisplayMode = .always and setting navigationItem.titleView = <Some cool UIButton> it's displaying both the normal navigation title bar and the large navigation title. Illustration: To sum up: How can we use custom titleView on our Large Navigation Title? EDIT : This is the expected

Issue with iOS 11 full screen web app on iPad and the status bar

橙三吉。 提交于 2019-12-03 13:01:45
问题 I have a full screen home screen web app that is designed for 1024x768 resolution so it fits perfectly on the iPad in landscape mode. Or at least, it did, until the iOS 11. This update now has content rendered under the status bar which pushed the entire page down 20 pixels. My meta-tags involved are as follows: <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="viewport" content="initial-scale=1

How to add a safe area programmatically

ⅰ亾dé卋堺 提交于 2019-12-03 13:01:26
When you open the view, it will look like the image below, i Phone x open view i Phone 8 open view For iphone x, I would like to add a safe area programmatically in the current view. The source to try is as follows. UIView *view = self.view; if (@available(iOS 11.0, *)) { UILayoutGuide * guide = view.safeAreaLayoutGuide; [view.topAnchor constraintEqualToAnchor:guide.topAnchor].active = YES; [view.bottomAnchor constraintEqualToAnchor:guide.bottomAnchor].active = YES; } I suppose to apply this source, but I do not know what to do. please answer about my question.! Here is sample code for Safe

Detect add photos only permission

喜夏-厌秋 提交于 2019-12-03 13:00:23
问题 In ios 11 we now have "Add photos only" permission setting. But how we now determinate which photo library access level is set? [PHPhotoLibrary authorizationStatus] works only for "Read and Write" permission check. If app asked only for "Add photos only" permission then it stays PHAuthorizationStatusNotDetermined . If user changed it from "Read and Write" to "Add photos only" it gives PHAuthorizationStatusDenied . So, how can I tell if my app have permissions to do "Export to Camera Roll"