简体   繁体   中英

Show value in Preferences in iphone

I have a Settings.bundle and inside there i have one Root.plist .

In that i have a PSSliderPrefernce and i want to show its value when a user set a value in device Settings page.

Thanks in advance 在此处输入图片说明

add a UILabel in your UI, write a method like:

//method for your slider
-(void)sliderValueChanged
{
   [yourLabel setText:[NSString stringWithFormat:@"%.3f", yourSlider.value]];
}

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