title: How to assign each letter in a textfield to a number in Xcode
body: <p>I am unsure how I can make each letter of the alphabet assigned to a number e.g. <code>A = 1, B = 2</code> etc. So that when a user types say for example a name into the text field, the numerical values of all the letters are added up and given as a total.</p>
  
  <p>This ultimately will then hopefully allow me to display a certain output based on the total of the letters.</p>
  
  <p>Cheers, Leo</p>