gpt4 book ai didi

ios - 无法识别的选择器发送到实例 0xa44bef0

转载 作者:行者123 更新时间:2023-11-29 02:43:29 24 4
gpt4 key购买 nike

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UISlider setPopUpViewCornerRadius:]: unrecognized selector sent to instance 0xa44bef0'

代码:

self.slider1.maximumValue = 255.0;
self.slider1.popUpViewCornerRadius = 25.0;
[self.slider1 setMaxFractionDigitsDisplayed:0];
self.slider1.popUpViewColor = [UIColor colorWithHue:0.55 saturation:0.8 brightness:0.9 alpha:0.7];
self.slider1.font = [UIFont fontWithName:@"GillSans-Bold" size:22];
self.slider1.textColor = [UIColor colorWithHue:0.55 saturation:1.0 brightness:0.5 alpha:1];

请指导我,提前致谢

最佳答案

UISlider没有此属性 popUpViewCornerRadius,因此会发生此错误。您需要删除下面这一行。

self.slider1.popUpViewCornerRadius = 25.0;

关于ios - 无法识别的选择器发送到实例 0xa44bef0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25439436/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com