gpt4 book ai didi

ios - Try-Catch 错误 Objective-C

转载 作者:塔克拉玛干 更新时间:2023-11-01 19:09:41 25 4
gpt4 key购买 nike

<分区>

我正在尝试从给定的 Instagram 图片中获取字幕,但是如果没有字幕,应用程序会抛出异常并崩溃。我将如何实现 @try@catch 来做到这一点。这是我到目前为止所拥有的:

@try {
RNBlurModalView *modal = [[RNBlurModalView alloc] initWithViewController:self title:[NSString stringWithFormat:@"%@",entry[@"user"][@"full_name"]] message:[NSString stringWithFormat:@"%@",text[@"caption"][@"text"]]];
[modal show];
}
@catch (NSException *exception) {
NSLog(@"Exception:%@",exception);
}
@finally {
//Display Alternative
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com