title: Function similar to .endsWith in Java in Objective-C
body: <p>I have some strings in my array which can be .html or .txt files. In Java we can use <code>.endsWith("String")</code> to check whether a string ends with another string How can we achieve the same thing in Objective-C?</p>
  
  <p>eg: I want to check whether this string ends with .html or .txt.</p>