简体   繁体   中英

UISlider iOS thumb repeats

Currently my UISlider's thumb is repeating. Check this image out : http://d.pr/JT8H

This is all I'm doing :

UISlider *slider = [[UISlider alloc] initWithFrame:CGRectMake(40, 330, 240,0)]; [self.view addSubview:slider];

It looks like you have

 [self.view addSubview:slider]; 

down twice somewhere? I'd also make my slider at least 25px tall, you have it down as 0, I don't think that'd cause your problem though..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM