用于选择器'labelColor'的未知类方法-react-native-image-crop-picker-对于react-native iOS

问题描述 投票:0回答:1

我在react-native应用程序中使用react-native-image-crop-picker库版本详细信息

react-native version: 59.10
 react-native-image-crop-picker: 0.25.3
 xcode: 10.1

执行代码时出现错误QBImagePicker / QBAssetsViewController.m:198:31:选择器'labelColor'的未知类方法

195    // Info label
196    UIColor *labelColor = [UIColor blackColor];
197    if (@available(iOS 13.0, *)) {
198        labelColor = [UIColor labelColor];
199    }

我已尝试升级库版本,但问题仍然存在。谁能帮忙

提前谢谢您

ios react-native react-native-ios
1个回答
0
投票
@property (class, nonatomic, readonly) UIColor *labelColor  
        API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);

我正在使用XCode,并为此跳过了。请注意UIInterface.h定义(上文),它不适用于watchOS。如果您的代码像我的代码一样,并且被WatchOS使用,那么您将遇到上述问题。

© www.soinside.com 2019 - 2024. All rights reserved.