//找到以什么什么字符串开头的句子,返回yes或者no; [square.url hasPrefix:@"http:"]; //找到以什么什么字符结尾的句子,返回yes或者no; [square.url hasPrefix:@"mod:"] 转载于:https://www.cnblogs.com/handada/p/5628044.html