object-c 异常

@try

{

[self createPlayer];

            [self startPlayer];

}

@catch (NSException * e) {

[self onErrorMsg:@"启动播放器失败"];

}

你可能感兴趣的:(object-c 异常)