0

我在使用最新工具(5.1)生成的代码中获得了 UIStepper。现在我想让这个应用程序可用于 4.3 版本。当我将部署目标指定为 4.3 并在 4.3 模拟器中运行应用程序时,它会在为步进器设置值的部分崩溃。

step.value = [[array objectAtIndex:Indexpath.row] doubleValue];

此值未设置。

4

1 回答 1

2

您正在使用早期版本的 iOS 中不可用的功能。

http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIStepper_Class/Reference/Reference.html

引用文档:

UIStepper 类参考

从 UIControl 继承: UIView : UIResponder : NSObject

符合
NSCoding (UIView) UIAppearance (UIView) UIAppearanceContainer (UIView) NSObject (NSObject)

框架 /System/Library/Frameworks/UIKit.framework

可用性
适用于 iOS 5.0 及更高版本。在 UIStepper.h 中声明

于 2012-05-18T07:24:21.087 回答