Ios 我的UIStepper未设置动画

Ios 我的UIStepper未设置动画,ios,objective-c,uistepper,Ios,Objective C,Uistepper,我使用的是通过故事板添加的UIStepper。当步进器的值更改时,我有一个IBOulet引用到我的UITableViewCell子类和一个IBAction 我的问题是,当我触摸我的UIStepper时,没有动画。我是iOS开发的新手,所以我不知道为什么 这是我的头文件: //CellSubclass.h @interface SAProductCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIStepper *quanti

我使用的是通过故事板添加的
UIStepper
。当步进器的值更改时,我有一个
IBOulet
引用到我的
UITableViewCell
子类和一个
IBAction

我的问题是,当我触摸我的
UIStepper
时,没有动画。我是iOS开发的新手,所以我不知道为什么

这是我的头文件:

//CellSubclass.h
@interface SAProductCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIStepper *quantityStepper;
- (IBAction)stepperValueChanged:(id)sender;
以及我的实施:

//CellSubclass.m
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString*)reuseIdentifier
{
   self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
   if (self) {
       self.quantityStepper.minimumValue = 0;
       self.quantityStepper.stepValue = 0;
       self.quantityStepper.value = 1;
   }
   return self;
}
// ...
- (IBAction)stepperValueChanged:(id)sender{
    self.quantity = [[NSNumber alloc] initWithDouble:([self.quantityStepper value])] ;
    //[self refreshUI]; --> WORKS FINE !! But there is no animation when I touch down my stepper
}

添加一些代码请提供其他信息,如点击步进器时调用的函数等。您的问题目前非常模糊,很难让任何人知道问题的原因。在您询问时添加的代码您希望看到什么动画
UIStepper
没有任何动画。你的意思是当你触摸控件时它不会变暗吗?顺便说一句,你可以做
self.quantity=@(self.quantityStepper.value)。新的是完美的那种事情。