iOS Swift Array of Plist

Swift 5 code: func getArrayOfPlist() -> Array { let path = Bundle.main.path(forResource: “content”, ofType: “plist”) var contentsArray = [String]() if let path = path { if let contentsXML = FileManager.default.contents(atPath: path) { do { let plistData = try PropertyListSerialization.propertyList(from: contentsXML, options: [], format: nil) contentsArray = plistData as! Array } catch { NSLog(“Error when decoding …

How to Make Sure That You Are Using an Enterprise Account for IPA Provisioning

In my post describing how to »Provision iOS IPA App for In-House Enterprise Distribution« I described the pitfalls when trying (and hopefully succeeding) to make an In-House Provisioning of your iOS app. Although I mention repeatedly that you need to be sure that you use an Apple Enterprise Provisioning Account, I experienced multiple times that …

Swift Extension for Location Authorization Requests in iOS

A while back I wrote an Objective-C category that helps you managing location authorization requests. As I needed the same functionality in a Swift-based project, I did the effort to transfer the code into Swift. You can download the Swift location authorization extension here.

A Simple Approach to App Localization using Xcode, XLIFF and Objective-C

When it comes to localizing applications for iOS or Mac OS, things get pretty quickly messed up and cumbersome. The tool support by Apple is – friendly spoking – lacking consistency. Especially if you are updating your code and want to update the localization, things get hairy. I do not want to go into detail …

How to Prevent Dismissing Containing View Controller when Performing a Double-Tap on a UIPopoverController’s Background under iOS8 in Objective-C

When opening up a popover from a modal view (or another popover) on an iPad running iOS 8 and double-tapping on the background of the popover, not only the popover will be dismissed but also the modal view. This behavior was non-existant in iOS 7 and seems to be a bug in iOS 8.

ReBirth for iPad

I really liked ReBirth from Propellerheads back in the 90ies. However, I have not heard much of ReBirth (and of the good old Roland 303 and its companions) since then. Now, ReBirth is back on the iPad (although there is also an iPhone/iPod Touch version of it only the iPad version seems just right) and …