Python has string.startswith() and string.endswith() functions which are pretty useful. What NSString methods can I use to have the same function?<
string.startswith()
string.endswith()
-hasPrefix() and -hasSuffix() return YES or NO depending on whether the receiver begins or ends with the given substring. If that's what startswith() and endswith() do, then that's your answer.