ios11

Search Bar in a Navigation Item collapses and gets stuck under status bar upon navigation pop, on iOS 11

我与影子孤独终老i 提交于 2019-12-07 04:15:39
问题 I am using the new iOS 11 searchContoller property of a UINavigationItem . I am running iOS 11.0 GM build. When I perform a push segue whilst the search controller is active, it works fine. When I subsequently pop back, the search bar is collapsed and squashed up in the status bar. I cannot then cancel the search, or edit the search text. See the following sequence of images: The final image is showing the appearing of the table during the pop segue to return from a presented view controller

dyld: Library not loaded: @rpath/CoreNFC.framework/CoreNFC, iOS11 and Xcode 9 beta

女生的网名这么多〃 提交于 2019-12-07 03:42:06
问题 I get this error and app get crash while run CoreNFC sample code in Xcode 9.0 beta 2 dyld: Library not loaded: @rpath/CoreNFC.framework/CoreNFC Referenced from: /var/containers/Bundle/Application/2837709C-C852-4811-B696-38F2725554D4/iOS-11-by-Examples.app/iOS-11-by-Examples Reason: image not found Does anyone knows how to fix this? 回答1: I combined some answers together to fix this thanks to @Chinchan Zu's comment here is how to mark Core NFC as Optional stackoverflow question First you make

Open iOS 11 Files app via URL Scheme or some other way

大兔子大兔子 提交于 2019-12-07 00:52:06
问题 My app is now sharing Documents directory on iOS 11 Files app "On My iPhone" section. (Thanks to this article: Working with the Files App in iOS 11) Question is how to open this directory or at least File app root page via URL Scheme. UIDocumentPickerViewController or UIDocumentBrowserViewController doesn't help in this situation. 回答1: The Files app can be opened with the URL scheme shareddocuments:// . I don’t know if there’s a way to open a specific directory however. 来源: https:/

Ambiguous use of play of MPMusicPlayerController in iOS11, swift4

别说谁变了你拦得住时间么 提交于 2019-12-07 00:48:35
I'm running the Apple iOS11 example Adding Content to Apple Music on Xcode Version 9.0 beta 3 (9M174d) . I get a Ambiguous use of 'play() in /adding-content-to-apple-music/AppleMusicSample/Controllers/MusicPlayerManager.swift:78:9: Ambiguous use of 'play()' The suggested solutions to explicitly define the selector in order to avoid the ambiguity like: let play = #selector(musicPlayerController.play) did not work in this case. The MPMusicPlayerController instance in the MusicPlayerManager class is defined as let musicPlayerController = MPMusicPlayerController.systemMusicPlayer and then referred

invalid reference image arkit 1.5

二次信任 提交于 2019-12-06 22:35:49
问题 I am running the apple sample project of ARKit 1.5 Image detection but when I place my reference image inside AR Resource folder and run the app I get following error: Make sure all reference images are greater than 100 pixels and have a positive physical size in meters. I don't find any predefined requirements of how should the image be, can anyone explain the required attributes of the image? 回答1: As in Apple's documentation For each image, use the inspector to describe the physical size of

What causes iOS 11 iPad recent apps dock icon to be grayed out?

别说谁变了你拦得住时间么 提交于 2019-12-06 22:05:38
问题 I have an app that I have "inherited" to maintain. Since the iOS 11 update, on two separate iPads (iPad Air and iPad 5th gen), I have a problem. Both devices are running iOS 11.0.2. When the app is installed and launched for the first time, the app icon shows up in the "Recent apps" section of the dock, but the icon is grayed out and cannot be tapped (it can be dragged, but long-pressing does nothing). For any subsequent app launches the dock icon remains unchanged, unless any process occurs

Having trouble with MusicKit sample app provided by Apple

♀尐吖头ヾ 提交于 2019-12-06 21:44:38
I am trying to build "Adding Content to Apple Music”, Music Kit sample app provided by Apple, on Xcode 9 beta 3. However I am having 4 errors like this : three “Ambiguous use of 'play()’” errors and one “Ambiguous use of 'pause()’” Please tell me how to fix this if you already solved this problem. func beginPlayback(itemCollection: MPMediaItemCollection) { musicPlayerController.setQueue(with: itemCollection) //Ambiguous use of 'play()’ musicPlayerController.play() } func beginPlayback(itemID: String) { musicPlayerController.setQueue(with: [itemID]) //Ambiguous use of 'play()’

Web Push notifications with iOS 11.3

只谈情不闲聊 提交于 2019-12-06 17:30:32
问题 With the release of iOS 11.3 and it's inclusion of service workers, I have been trying to find information about whether or not web push is also available now, particularly for the usage in PWA's. Does anyone have any knowledge on this or know where I can find the information. I Currently use Onesignal for my push notification package and it works very very well for browser and Android. So here is hoping that if it is supported now, they get it up and running fast. 回答1: Bad news : Apple has

Xcode 9 borderColor doesn't work in User Defined Runtime Attributes

爱⌒轻易说出口 提交于 2019-12-06 15:30:58
I'm using this CALayer extension: var borderUIColor: UIColor { set { self.borderColor = newValue.cgColor } get { return UIColor(cgColor: self.borderColor!) } } I thought that maybe because of this extension my borderColor of the Submit button from the bottom of the page doesn't change to white (as I want it to be): But no, I hooked up an IBOutlet and tried to set directly the color like this: submitButton.layer.borderColor = UIColor.white.cgColor Did it in viewDidLoad , viewWillAppear and viewDidAppear because I know that in the last big update (iOS 10) the frame rendering was changed

How to get rid of safeAreaInsets on UIScrollview (iOS 11, iPhoneX)

ε祈祈猫儿з 提交于 2019-12-06 14:59:04
I have a horizontal paging UIScrollview , following is my VFL constraints for leading/trailing H:|-0-[ScrollView]-0-| (aligned to superview). I have left/right safeAreaInsets on landscape orientation in iPhone X. Is it a bug? or I am missing any Apple way that these insets will not be applied when we do not need? I am using following to skip content inset adjustment: UIScrollview.contentInsetAdjustmentBehavior = .never I found that in iOS 11 UIScrollViewContentInsetAdjustmentBehavior.always includes safe area layout guide and apply these margins as insets, so tried .never it worked )) If you