title: Converting iOS5 app to ARC
body: <p>I am integrating some third party code into my app, and at the same time, trying to convert the app to ARC.</p>
  
  <p>I'm attaching a screen shot to show the only two errors. If this is obvious to someone how to recode this section, I would be most grateful. </p>
  
  <p><img src="https://i.stack.imgur.com/Zy9Re.png" alt="enter image description here"></p>
  
  <p>I have one more pita to solve. What's the most pragmatic way to solve this one:</p>
  
  <pre><code>value =  (NSString *)CFURLCreateStringByReplacingPercentEscapesUsingEncoding(kCFAllocatorDefault,
                                                                                               (CFStringRef)value,
                                                                                               CFSTR(" "),
                                                                                               kCFStringEncodingUTF8);
  </code></pre>
  
  <p>This gives this error:</p>
  
  <p>"Cast of Objective-C pointer type 'NSString *' to C pointer type 'CFStringRef' (aka 'const struct __CFString *') requires a bridged cast"</p>
  
  <p>Thanks again.. I will lose this code asap...</p>