Change numbers in NSString


i working on blog app. parse rss feed , take 1 of item elements , build html string. have leave uiwebview scales fit turned off, or text gets shoved 1 page, , small read. if turn on scales fit on uiwebview, text perfect, if larger pictures in blog, stretch off width of page. 1 such picture is

img class="aligncenter size-full wp-image-4532" title="father_and_daughter_1" src="http://treymorgan.net/wp-content/uploads/2012/06/father_and_daughter_1.jpg" alt="" width="590" height="342" /

in case, width goes beyond 320px. there way use regex or detect if width greater 320, , if so, have replace width , height fit?
 

change numbers in nsstring

i'm having issue replacing string occurence of string methods
string want change is:

<img class="alignleft size-full wp-image-4539" title="divorce" src="http://treymorgan.net/wp-content/uploads/2012/06/divorce.jpg" alt="" width="226" height="170" />

want replace width , height numbers standard set...any suggestions?
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Rogue - the old text based game. I can't find it!

RAID in Early 2009 Mac Pro

NBC Releases Summer Olympics iOS Apps, Offering Livestreaming of All 302 Events