From http://stackoverflow.com/questions/15931227/uitextfield-set-cursor-to-start-text-position