ios10.3

SKStoreReviewController how to detect that user has turned off Rate This App (RTA) in settings or 3 times limit has reached?

匆匆过客 提交于 2019-12-02 20:47:56
Starting iOS 10.3, Apple is limiting the review prompt (Rate This App) to 3 times a year and it can be turned off in the user's settings. Q: How do we detect that the 3 times limit has reached or if the user has turned off RTA so in the app I won't show a popup saying: "Did you like the app? If yes, can you write a review? [Yes/No]" because then, if the user taps Yes, nothing will show up. There is really not much information here from the official documentation: https://developer.apple.com/reference/storekit/skstorereviewcontroller Although you should call this method when it makes sense in

How To Get Account Name From Contact Framework

▼魔方 西西 提交于 2019-12-02 20:02:46
问题 We know that contacts in iOS can be synced from Google , iCloud and Phone . Well, we can fetch a bunch of Contacts using Contacts.framework , but I want to know which account it belongs to. I mean, I need to differentiate Email and Phone synced contacts. Is there any way to do so? I am using contact framework . I am getting identifier by using CNContainer , but how to get account name in which contacts are stored and also how fetch that contact’s from that account? 回答1: Can you please try

NSMutableAttributedString not working in tableviewcell with a specific range

与世无争的帅哥 提交于 2019-12-02 04:54:01
问题 I have followed this question but didn't solve my problem. I have a tableview in ViewController , tableviewcell have a label. I want to set attributedString with NSStrikethroughStyleAttributeName . If i am setting complete string as a strikethrough it works but if i am setting as partial it doesn't works. Below code for success result let strOriginalPrice = "my price" let strdiscountedPrice = "discounted price" let strPrice = strOriginalPrice+" "+strdiscountedPrice let attributeString:

NSMutableAttributedString not working in tableviewcell with a specific range

半世苍凉 提交于 2019-12-02 02:06:42
I have followed this question but didn't solve my problem. I have a tableview in ViewController , tableviewcell have a label. I want to set attributedString with NSStrikethroughStyleAttributeName . If i am setting complete string as a strikethrough it works but if i am setting as partial it doesn't works. Below code for success result let strOriginalPrice = "my price" let strdiscountedPrice = "discounted price" let strPrice = strOriginalPrice+" "+strdiscountedPrice let attributeString: NSMutableAttributedString = NSMutableAttributedString(string: strPrice) attributeString.addAttribute

Alternate Icon in iOS 10.3: avoid notification dialog for icon change

痞子三分冷 提交于 2019-12-01 03:22:22
I'm using this new feature and when the change is made with an active application, a notification dialog is displayed saying that icon has been modified. How to disable this dialog ? If you don't mind making use of private method, you can try the following code. - (void)lc_setAlternateIconName:(NSString*)iconName { //anti apple private method call analyse if ([[UIApplication sharedApplication] respondsToSelector:@selector(supportsAlternateIcons)] && [[UIApplication sharedApplication] supportsAlternateIcons]) { NSMutableString *selectorString = [[NSMutableString alloc] initWithCapacity:40];

Apple File system Permission to read from Photo Library

此生再无相见时 提交于 2019-11-30 20:30:34
问题 I have a UIWebView inside my ios application , which loads responsive website into my webview, developed in asp.net . Website has a button to choose video from device Photo Library and another button to upload video. In till ios version 10.2 it is uploading files successfully to server. Apple introduce new version ios 10.3 with new file system APFS before it was HFS+ File System. In ios 10.3 it doesnot allow my application to read video file and 0kb size is uploaded to server. This is because

How to use iOS 10.3 devices with Xcode 8.2.1

点点圈 提交于 2019-11-28 16:30:46
This iPad mini 2 (Model A1490) is running iOS 10.3 (14E277), which may not be supported by this version of Xcode. my xcode version 8.2.1 my Device ios version 10.2 In order to run your app on 10.3 device with Xcode 8.2.1 you'll need a new Developer Disk Image for 10.3. You can follow this user's guide here that seems is working for me too. Use at your own risk. Steps: 1.Download Zip file and extract. 2.Click on "Finder" in MAC OS 3.Click on "Go to Folder" 4.Paste /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport . Otherwise go to Applications > Right Click on

iOS 10.3 beta 3 doesn't persist data of KeychainItem

痞子三分冷 提交于 2019-11-28 11:26:00
I have observed behavior of app in iOS 10.2.1 device and iOS 10.3 beta 3 device for https://developer.apple.com/library/content/samplecode/GenericKeychain/Introduction/Intro.html Keychain data is being deleted in iOS 10.3 beta 3. That was still found in earlier versions. Do we have any alternative to do this? Now that 10.3 has been officially released, it's been confirmed by several parties, including in this Apple's developers forum post , that this issue is not present in the final release. Keychain data is not being deleted upon app's uninstall. Originally (Since iOS 10.3 beta 1 to 5?) the

SKStore​Review​Controller, How to use it in a correct way?

匆匆过客 提交于 2019-11-28 06:14:28
I have seen some answer but not satisfied with them and got some idea, but don't know how to use it properly, so that it will execute in proper way, though i think it should be used in App delegates didFinishLaunching , but i wanted to be sure before implement it in Live app without any hustle. SKStore​Review​Controller is only work for ios 10.3 what i read, could anybody explain with little bit of code in swift and objective c. UPDATE: Actually I'm confused about calling the method request​Review() , Where do i need to call this method? in rootViewController 's viewDidLoad or in appDelegate

iOS 10.3 beta 3 doesn't persist data of KeychainItem

喜欢而已 提交于 2019-11-27 06:06:53
问题 I have observed behavior of app in iOS 10.2.1 device and iOS 10.3 beta 3 device for https://developer.apple.com/library/content/samplecode/GenericKeychain/Introduction/Intro.html Keychain data is being deleted in iOS 10.3 beta 3. That was still found in earlier versions. Do we have any alternative to do this? 回答1: Now that 10.3 has been officially released, it's been confirmed by several parties, including in this Apple's developers forum post, that this issue is not present in the final