Does App Store reject submission if NSAllowsArbitraryLoads set to YES?

Thanks for everyone’s answer. The good news is Apple Accepted my app with NSAllowsArbitraryLoads set to YES. UPDATE (Thanks @Vijayts): Apple will reject Apps not conforming to ATS after the end of Dec 2016. Source However, If you need to load a http:// resource only in web (UIWebView/WKWebView/SafariViewController) then the following should suffice. <key>NSAppTransportSecurity</key> <dict> … Read more

Apple Live Photo file format

A live photo has two resources. They are tied together with an asset identifier (a UUID as a string). A JPEG; this must have a metadata entry for kCGImagePropertyMakerAppleDictionary with [17 : assetIdentifier] (17 is the Apple Maker Note Asset Identifier key). A Quicktime MOV encoded with H.264 at the appropriate framerate (12-15fps) and size … Read more

fatal error: swapping a location with itself is not supported with Swift 2.0

You are trying to swap an element with itself, you will need to perform a check to see if you are not trying to swap an element to the same spot in the array, like so: extension Array { var shuffle:[Element] { var elements = self for index in 0..<elements.count { let newIndex = Int(arc4random_uniform(UInt32(elements.count-index)))+index … Read more

UITextView with hyperlink text

Set isEditable = false or the text view will go into text-editing mode when user taps on it. Swift 4 and later let attributedString = NSMutableAttributedString(string: “Just click here to register”) let url = URL(string: “https://www.apple.com”)! // Set the ‘click here’ substring to be the link attributedString.setAttributes([.link: url], range: NSMakeRange(5, 10)) self.textView.attributedText = attributedString self.textView.isUserInteractionEnabled … Read more