<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Bug on The Dangling Pointer</title><link>https://aaron.blog/tags/bug/</link><description>Recent content in Bug on The Dangling Pointer</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 22 Jan 2016 14:09:31 +0000</lastBuildDate><atom:link href="https://aaron.blog/tags/bug/index.xml" rel="self" type="application/rss+xml"/><item><title>Swizzling in AFNetworking somehow breaks iOS' NSDoubleLocalizedStrings</title><link>https://aaron.blog/swizzling-in-afnetworking-somehow-breaks-ios-nsdoublelocalizedstrings/</link><pubDate>Fri, 22 Jan 2016 14:09:31 +0000</pubDate><guid>https://aaron.blog/swizzling-in-afnetworking-somehow-breaks-ios-nsdoublelocalizedstrings/</guid><description>&lt;h1 id="tools-to-help-test-localization"&gt;Tools to Help Test Localization&lt;/h1&gt;&lt;p&gt;Apple 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:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;code&gt;NSDoubleLocalizedStrings&lt;/code&gt; - Any calls made to &lt;code&gt;NSLocalizedString&lt;/code&gt; will double the strings to simulate languages with longer words, like German.&lt;/li&gt;&lt;li&gt;&lt;code&gt;NSShowNonLocalizedStrings&lt;/code&gt; - Replaces any text from &lt;code&gt;NSLocalizedString&lt;/code&gt; that doesn't have an entry in a strings file.&lt;/li&gt;&lt;li&gt;&lt;code&gt;AppleTextDirection&lt;/code&gt; - Simulates a Left to Right language.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;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 - &lt;em&gt;Double Length Pseudolanguage&lt;/em&gt; and &lt;em&gt;Right to Left Pseudolanguage&lt;/em&gt;. There is also a check box for &lt;em&gt;Show non-localized strings&lt;/em&gt;. These three options are equivalent to the launch arguments above.&lt;/p&gt;</description></item><item><title>iOS 9 Good Morning &amp; Afternoon Weirdness</title><link>https://aaron.blog/ios-9-good-morning-afternoon-weirdness/</link><pubDate>Mon, 05 Oct 2015 13:18:44 +0000</pubDate><guid>https://aaron.blog/ios-9-good-morning-afternoon-weirdness/</guid><description>&lt;p&gt;I had a user write in to get some help clarifying a behavior with the Migraine Diary app I wrote on iOS 9.&lt;/p&gt;&lt;p&gt;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:&lt;/p&gt;</description></item></channel></rss>