Sane localization workflow using Xcode 6, iOS 8, Storyboards and xliff?

We’ve resorted to connecting every label to an @IBOutlet and setting its translation in viewDidLoad() with NSLocalizedString. You are doing that right. Seriously. Wrap your development process around it and you’ll get way better off than trying to adopt the mess that the Storyboard localization evolved into. It solves pt.4 – you decide what you … Read more

Convert NSArray to Swift Array

I’m currently using obj.types.allObjects as Type[], but that feels like a hack/workaround. Then revise your feelings. What you’re doing is exactly how you do “type-cast / convert the NSArray to Array<Type>[].” An NSArray always arrives into Swift as containing AnyObject (i.e. an Array<AnyObject>, aka AnyObject[]). Casting it down to a specific type, if you know … Read more

Exposing an app’s ubiquitous container to iCloud Drive in iOS 8

I was experiencing a similar problem with my application. I was able to make this work by doing the following: Add the NSUbiquitousContainers setting to my Info.plist file according to documentation here https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/ExtensibilityPG/FileProvider.html. Here is the relevant code: <dict> <!– … other top-level Info.plist settings … –> <key>NSUbiquitousContainers</key> <dict> <key>iCloud.com.example.MyApp</key> <dict> <key>NSUbiquitousContainerIsDocumentScopePublic</key> <true/> <key>NSUbiquitousContainerSupportedFolderLevels</key> <string>Any</string> … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)