【发布时间】:2013-02-23 23:35:44
【问题描述】:
我想为 iOS6 用户添加一个 UIRefreshControl 为 iOS5 用户添加一个按钮。我只想将一个包交付到应用商店(显然),那么我该怎么做呢?
我能感觉到操作系统版本
float ver = [[[UIDevice currentDevice] systemVersion] floatValue];
if (ver >= 6.0) {
// Programmatically add UIRefreshControl.
}
但是如果我想支持iOS5,编译器不会让我使用UIRefreshControl?
【问题讨论】:
标签: iphone ios objective-c uikit