Ios 什么是Objective-C相当于一个空的Swift选项?

Ios 什么是Objective-C相当于一个空的Swift选项?,ios,objective-c,swift,Ios,Objective C,Swift,请看一下这个简单的Swift代码: UIView.animate(withDuration: duration, delay: interButtonDelay * Double(expanding ? index : index + 1), options: [], animations: { button.transform = expanding ? .init(scaleX: self.scale, y: self.scale) : .identity

请看一下这个简单的Swift代码:

UIView.animate(withDuration: duration, delay: interButtonDelay * Double(expanding ? index : index + 1), options: [], animations: {
            button.transform = expanding ? .init(scaleX: self.scale, y: self.scale) : .identity
            button.alpha = expanding ? 0.0 : 1.0
        }, completion: nil)

这里,一个空数组被传递到
options
参数中。我想知道什么是正确的Objective-C相当于这样做。我假设它应该通过0,但我想完全确定。不幸的是,文档没有告诉任何关于这一点的信息。

Swift的
optionstart
是为了使位掩码更易于使用而创建的。在Swift中,将组合值拼写为集合;在Objective-C中,它是一个整数值,使用位运算符构建:

NSUInteger options = UIViewAnimationOptionLayoutSubviews | UIViewAnimationOptionRepeat | UIViewAnimationOptionCurveEaseOut;

因此,Objective-C相当于一个空的
OptionSet
实际上只有0。

C枚举是int,因此0是一个要传递的有效值