title: how to replace space by % in objective c :Iphone
body: <p>I am getting value in search box from user and storing it in NSstring *searchWord;</p>
  
  <p>I want that when user typed let say "Lady Gaga" then I Replace the space with % just like that 
        searchWord=searchbar.text;</p>
  
  <pre><code>  now search word has "lady gaga"
  
   I want to replace it with.
    searchword=@"lady%gaga";
  </code></pre>