有没有人有幸在iOS上使用NSDataDetector来匹配航类信息?看起来真的amazinglypowerful,除了我根本无法让它工作。这是我正在尝试的:NSDataDetector*detector=[NSDataDetectordataDetectorWithTypes:(NSTextCheckingTypes)NSTextCheckingTypeTransitInformationerror:&error];[detectorenumerateMatchesInString:stringoptions:0range:NSMakeRange(0,[stringlength])u