代码之家  ›  专栏  ›  技术社区  ›  Pranjal Bikash Das

在iphone中的首选项中显示值

  •  1
  • Pranjal Bikash Das  · 技术社区  · 12 年前

    我有一个 Settings.bundle 里面有一个 Root.plist

    我有一个 PSSliderPrefernce 当用户在设备中设置值时,我想显示它的值 Settings

    提前感谢 enter image description here

    1 回复  |  直到 12 年前
        1
  •  0
  •   janusfidel    12 年前

    在您的UI中添加一个UILabel,编写一个方法,如:

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