ios11

iOS 11 Navigation TitleView misplaced

限于喜欢 提交于 2019-11-30 20:10:03
I have an iOS app in which I am setting a custom navigation title view. It was working fine till iOS 10, but in iOS 11 the navigation title view is misplaced. Here is the screen shot for iOS 10 - Here is the screen shot for iOS 11 - As you can see in the screen shots that when I run the code on iOS 10 the title view appears to be fine. But the same code on iOS 11 shifts the title view down by some pixels and it gets cut. This is how I am setting the title view - navigationItem.titleView = MY_CUSTOM_TITLE_VIEW I tried many things and searched for many solutions but nothing is working. Here's

Not able find UITableViewCellDeleteConfirmationView in ios 11 layoutsubview subview in UITableviewcell?

南笙酒味 提交于 2019-11-30 19:32:47
问题 I have to override the height swipe delete button in Tableviewcell i used the below code it's work fine ios 10 but in ios11 i can't able find the UITableViewCellDeleteConfirmationView in layoutsubview class foreach (var views in this.Subviews) { if (views.Class.Name.ToString() == new NSString("UITableViewCellDeleteConfirmationView")) { CGRect newFrame = views.Frame; CGRect newframe1 = new CGRect(newFrame.X, 6, newFrame.Size.Width, 59); views.Frame = newframe1; foreach (var getButtonviews in

Add title and subtitle to navigation bar similar to Apple Music in IOS 11

本小妞迷上赌 提交于 2019-11-30 17:51:45
问题 This is an IOS 11 question. I am not sure if we can talk about this, IOS being in beta. But I was looking at this navigation bar in Apple Music: I know they introduced large titles with IOS 11 : navigationController?.navigationBar.prefersLargeTitles = true The "For You" text looks like the title, but how did they add the date ? Is it an API for this ? At first I thought that is the prompt property, but that sets the text still in the center and on the top. I wonder if that is some special IOS

How to open your app in Settings iOS 11

偶尔善良 提交于 2019-11-30 17:05:27
It seems that Apple has moved a lot of the app configurations to the App path with iOS 11, how to open the app path programmatically in Settings? I tried "App-Prefs:root=\(Bundle.main.bundleIdentifier!)" but this doesn't seem to work. Please note that my question is specific to: How to open the app path in settings: NOT how to open the settings Damien Bannerot Here is the code you're looking for, I guess: if let url = URL(string: UIApplicationOpenSettingsURLString) { if UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url, options: [:], completionHandler: nil) } } Swift 4.2,

How to disable iOS 11 dragging within the whole app?

被刻印的时光 ゝ 提交于 2019-11-30 15:54:32
问题 For security reasons I want to disable the new iOS 11 drag & drop feature within my whole app. More specifically the drag part. In iOS 11 it's happening by default for text in all places where text can be selected - popups, textviews, webviews, etc. 回答1: I'm not aware of any way to fully disable the dragging functionality, but there's a way to confine the drag session to your own app only. That should already be a big improvement in terms of security. Take a look at

html-select drop down issue with cordova on IOS 11 Beta

北城以北 提交于 2019-11-30 15:40:58
问题 I currently build an IOS application using AngularJS and Cordova. I find a bug when I tried my app on IOS 11 Beta. To select some data in a form, we use select dropDown. When we select a value, the drop down list disappears but it appear again some seconds after. When I have multiple select on my form, when a tap on a second select the first is selected. Then after selected the value the good list of option appear. I try with basic sample and this is the same behaviour. In a web explorer or

How to disable iOS 11 dragging within the whole app?

不打扰是莪最后的温柔 提交于 2019-11-30 15:23:49
For security reasons I want to disable the new iOS 11 drag & drop feature within my whole app. More specifically the drag part. In iOS 11 it's happening by default for text in all places where text can be selected - popups, textviews, webviews, etc. I'm not aware of any way to fully disable the dragging functionality, but there's a way to confine the drag session to your own app only. That should already be a big improvement in terms of security. Take a look at sessionIsRestrictedToDraggingApplication . dragInteraction(_:sessionIsRestrictedToDraggingApplication:) Called to ask your app whether

Vision Framework Barcode detection for iOS 11

假如想象 提交于 2019-11-30 15:14:02
问题 I've been implementing a test of the new Vision framework which Apple introduced in WWDC2017. I am specifically looking at the barcode detection - I've been able to get after scanning the image from Camera/Gallery that it's a barcode image or not. However, I can't see what the actual barcode value or the payload data when looking at the barcodeDescriptor. There appears to be nothing exposed on the https://developer.apple.com/documentation/coreimage/cibarcodedescriptor page to identify any of

html-select drop down issue with cordova on IOS 11 Beta

北慕城南 提交于 2019-11-30 15:08:21
I currently build an IOS application using AngularJS and Cordova. I find a bug when I tried my app on IOS 11 Beta. To select some data in a form, we use select dropDown. When we select a value, the drop down list disappears but it appear again some seconds after. When I have multiple select on my form, when a tap on a second select the first is selected. Then after selected the value the good list of option appear. I try with basic sample and this is the same behaviour. In a web explorer or with IOS 10, there is no bug. <select ng-model="elements" ng-options="serie.nom for serie in elements"><

NFC Tag Writer sample or tutorial for ios?

試著忘記壹切 提交于 2019-11-30 14:41:14
I want to write set of NSDictionary data into NFC tag and get when they tap NFC Stickers. How to write NFC tag data from my iOS app? After searching Google I can't find any reference to write data from my iOS app to NFC tag. Samples given by Google is only for reading NFC tag by iOS11 app. But some of the app in iTunes have option to both read and write NFC tag data. How they did it? Thanks in advance! You cannot write to an NFC tag from iOS, only read. In the Core NFC documentation from Apple it's stated you can only read NFC NDEF tags, and only on iPhone 7 and 7 plus devices (assuming 8 and