gpt4 book ai didi

ios - 根据iOS版本导入不同的界面

转载 作者:行者123 更新时间:2023-11-28 18:42:07 24 4
gpt4 key购买 nike

我创建了一个 CustomURLConnection 类。

如果我的 iOS 版本大于 5.0 那么我想使用

@interface CustomURLConnection : NSURLConnection<NSURLConnectionDataDelegate,NSURLConnectionDelegate>

否则我想用

@interface CustomURLConnection : NSURLConnection 

我该怎么做?

最佳答案

您可以使用预处理器指令执行这些操作:

#ifdef __IPHONE_5_0 
//Put your ios 5 specific code here
#else
//Put your other code here
#endif

关于ios - 根据iOS版本导入不同的界面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9874083/

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