注册

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

        PSTFlowLayoutHorizontalAlignment horizontalAlignment = [self.section.rowAlignmentOptions[isLastRow ? PSTFlowLayoutLastRowHorizontalAlignmentKey : PSTFlowLayoutCommonRowHorizontalAlignmentKey] integerValue];
已邀请:
提示错误 Cannot initialize a variable of type 'PSTFlowLayoutHorizontalAlignment' with an rvalue of type 'long _Nullable'

要回复问题请先登录注册