{"id":3808,"date":"2014-03-30T05:46:17","date_gmt":"2014-03-30T05:46:17","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/is-there-some-way-to-prevent-uitextfield-from-converting-spaces-to-non-breaking-spaces-collection-of-common-programming-errors\/"},"modified":"2014-03-30T05:46:17","modified_gmt":"2014-03-30T05:46:17","slug":"is-there-some-way-to-prevent-uitextfield-from-converting-spaces-to-non-breaking-spaces-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/is-there-some-way-to-prevent-uitextfield-from-converting-spaces-to-non-breaking-spaces-collection-of-common-programming-errors\/","title":{"rendered":"Is there some way to prevent UITextField from converting spaces to non-breaking spaces?-Collection of common programming errors"},"content":{"rendered":"<p>This appears to be a transitional bug that is ONLY present in apps built with XCode 4 but run under iOS 7.<\/p>\n<p>If a UITextField has a value set in the NIB editor (Interface Builder) then retrieving the value at runtime via aTextField.text returns a string with non-breaking spaces (\\u00A)) instead of standard space character (\\u0020) when the keyboard (standard) space was typed.<\/p>\n<p>Text entered by the user (through the keyboard at runtime) has the standard space character.<\/p>\n<p>Apps written\/compiled using XCode 5 do not show this behavior.<\/p>\n<p>Any suggestions on how to change, override, or mask this behavior?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This appears to be a transitional bug that is ONLY present in apps built with XCode 4 but run under iOS 7. If a UITextField has a value set in the NIB editor (Interface Builder) then retrieving the value at runtime via aTextField.text returns a string with non-breaking spaces (\\u00A)) instead of standard space character [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3808","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3808"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3808\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}