lroundf() and sliders

来源:互联网 发布:midas软件破解版下载 编辑:程序博客网 时间:2024/05/21 10:02

We use the function lroudf() to round the decimal number to the nearest whole number.

- (IBAction)sliderMoved:(UISlider *)slider

{

   currentValue = lroundf(slider.value);

}


pp62

原创粉丝点击