Srt字幕文件解析
// // ViewController.m // 字幕解析 // // Created by admin on 2018/8/30. // Copyright © 2018年 admin. All rights reserved. // #import " ViewController.h " @interface ViewController () @end @implementation ViewController - ( void )viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self findMatch]; } -( void )findMatch { /* 444 00:48:25,670 --> 00:48:26,920 你就是死在那儿的 */ // 当被检索的字符串太大时,用block控制查找 NSString *srtText = [[NSString alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource: @" mp4video " ofType: @" srt " ] encoding