Slider Range WebService Call

I have a double slider. When the slider value is updated, we want to call the Webservice. I want to call min and max the final value, but they require tracking every value in the path. I edited this code for the first time, but after they don't work. because the method is static once. Is there any method that gets called exactly once when the method is called.

- (void)report:(RangeSlider *)sender {
     NSString *rupee=@"\u20B9";
    min=slider.min *1000;
     max=slider.max *1000;

    minValue =(int)min;
    maxValue =(int)max;


    NSString *report = [NSString stringWithFormat:@"%@ %d - %@ %d",rupee, (int)min,rupee, (int)max];
    reportLabel.text = report;
    reportLabel.textColor =[UIColor whiteColor];


    NSString *email=     [[NSUserDefaults standardUserDefaults] stringForKey:@"token"];
    NSString *ids=     [[NSUserDefaults standardUserDefaults] stringForKey:@"id"];



       static dispatch_once_t once;
dispatch_once(&once, ^ {
    double delayInSeconds = 5.0;
    dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
    dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
        if ([searchBar.text isEqualToString:@""]) {
            NSDictionary *dict=[WebService searchByPrice:ids :email :minValue :maxValue];
            responseArray =[dict objectForKey:@"result"];

            NSLog(@"%@",responseArray);


            [table reloadData];


        }
    });

});


}

      

+1
ios objective-c iphone


source to share


No one has answered this question yet

See similar questions:

3
Changing the range value of the range slider

or similar:

928
How do I call Objective-C code from Swift?
302
UILongPressGestureRecognizer is called twice when clicked
224
iOS - Calling Application Delegation Method from ViewController
209
Why is viewWillAppear not called when the app returns from the background?
136
Make a program call
135
ViewDidAppear not called when opening app from background
7
How to implement a range slider in Swift
3
Changing the range value of the range slider
0
WebService Call after timeInterval
-1
Call multiple webservice and parse the xml



All Articles
Loading...
X
Show
Funny
Dev
Pics