Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8878945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:50:10+00:00 2026-06-14T19:50:10+00:00

Hello : Im developping an application and I’d like to display the value of

  • 0

Hello : Im developping an application and I’d like to display the value of a UISlider as the user moove it along the bar.

I created an IBOutlet linked in Interface Builder to an UILabel and a IBAction linked in Interface Builder to the slider. They are declared as following in the Information.h :

@property(nonatomic, retain) IBOutlet UILabel *DispTemp;
@property(nonatomic, retain) IBOutlet UISlider *SetTemperature;

-(IBAction) DisplayTemp:(id) sender;

I didnt forget the @synthesize DispTemp; and @synthesize SetTemperature; in the Information.m .I’m using this code for the IBAction :

-(IBAction) DisplayTemp:(id) sender{
    self.DispTemp.text = [NSString stringWithFormat:@"%d",self.SetTemperature.value];
}

Obviously the Link with interface builder is working because as i moove the slider the value changes. However i set the range from -10 to 30 with a 0,5 step but the value that are shown moove from -a few millions to +a few million and come back regularly to 0. I dont know what is going on, any help would be great. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:50:11+00:00Added an answer on June 14, 2026 at 7:50 pm

    You used a wrong format specifier (%d is for int). The value property of sliders has type float:

    self.DispTemp.text = [NSString stringWithFormat:@"%f",self.SetTemperature.value];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I'm developing a simple application where the user can change a content in
Hello I'm developing a WPF Desktop application using MVVM and I'll like for my
Hello I am developing an application about registration of users, but when the user
Hello i am new in android and i am developing one application in which
Context: Hello, I'm developing an on line application of Tennis Club Management... I would
Hello I am developing a map view I tried to following way I created
Hello, I want to put custom status bar in notification window of iphone. is
I'm developping a silly application that: - opens a pictures from media library, -
I am developing an application which the user can select a language and It
Hello i am new in developing Android applications, I need to create an application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.