[英]Invalid operands to binary expression ('CGFloat' (aka 'double') and 'UIView * _Nullable')
As Mike Taverne commented, the ! 正如Mike Taverne所说,! needs to go. 需要走。 Insead of !.
侵害!.
I think you probably want ->
if the is supposed to be objective C. ObjC seems to think you want to subtract _profileBelowView.superView from offsetY. 我认为您可能想要->
如果应该以目标C为对象。ObjC似乎认为您想从offsetY中减去_profileBelowView.superView。 You could try putting parentheses around the second half of the subtraction. 您可以尝试在减法的后半部分加上括号。 That's not the real problem here but you might have gotten a better error message once the order of operations issue was removed. 这不是真正的问题,但是一旦删除了操作顺序问题,您可能会得到更好的错误消息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.