I have a button named settings, when I press this button the application crashes.
I have doubt in warnings that’s why I’m going to show you what I got when building:
.../RechercherViewController.m:66: warning: 'UISlider' may not respond to '-setShowValue:'
that warning is pointing me at this line in the viewDidLoad method:
[rayonDeRechercheSlider setShowValue:YES];
rayonDeRechercheSlider is a UISlider declared in the .h file of the View :
IBOutlet UISlider *rayonDeRechercheSlider;
UISliderdoes not use a boolean property calledshowValueand also UISlider does not offer any explicit method calledsetShowValue:, hence the method call:setShowValue:YESon aUISliderwill crash the app.You may want to call
[rayonDeRechercheSlider setValue:1.0 animated:YES](replace 1.0 with the value you intend to set.