How can I create and display a UISlider programmatically in iOS? August 9, 2023 by Tarik You need to add the slider into your view hierarchy. Add [self.view addSubview:slider]; and it should work.