Swizzling in AFNetworking somehow breaks iOS' NSDoubleLocalizedStrings

Tools to Help Test LocalizationApple provides some pretty slick tools to help with localization testing in your apps. I had completely forgotten about two launch parameters that make it possible to find those pesky layout problems early: NSDoubleLocalizedStrings - Any calls made to NSLocalizedString will double the strings to simulate languages with longer words, like German.NSShowNonLocalizedStrings - Replaces any text from NSLocalizedString that doesn't have an entry in a strings file.AppleTextDirection - Simulates a Left to Right language.In Xcode 7 there is an easier way to provide these options. Edit the scheme for your app, click on the Run section, then the Options tab. You'll see Application Language has two options - Double Length Pseudolanguage and Right to Left Pseudolanguage. There is also a check box for Show non-localized strings. These three options are equivalent to the launch arguments above. ...

January 22, 2016 · 3 min · Aaron

iOS 9 Good Morning & Afternoon Weirdness

I had a user write in to get some help clarifying a behavior with the Migraine Diary app I wrote on iOS 9. The user explained that every morning she turns on her phone and Migraine Diary shows on the screen and when she opens it, it tells her Good Morning. The little icon sounded like Continuation or App Suggestions neither of which Migraine Diary supports. I asked for a screenshot and got this: ...

October 5, 2015 · 1 min · Aaron