iOS 给枚举类型的对象直接赋值整型值 这段代码编译无法通过

        PSTFlowLayoutHorizontalAlignment horizontalAlignment = [self.section.rowAlignmentOptions[isLastRow ? PSTFlowLayoutLastRowHorizontalAlignmentKey : PSTFlowLayoutCommonRowHorizontalAlignmentKey] integerValue];
已邀请:

nickname

赞同来自:

提示错误 Cannot initialize a variable of type 'PSTFlowLayoutHorizontalAlignment' with an rvalue of type 'long _Nullable'

nickname

赞同来自:

出错图片

要回复问题请先登录注册

知识价值的认可,源自您的赞赏

扫描二维码,你的支付将由imGeek代收后转给对方

×