Update for ios8
Add textWidth