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 3978428
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:02:47+00:00 2026-05-20T05:02:47+00:00

I got a UITableViewCell and added a UISlider and a UILabel to show the

  • 0

I got a UITableViewCell and added a UISlider and a UILabel to show the value of the slider
should look like this: |Bezeichnung|Value von UISlider| UISlider|
Here is my code in cellForRowAtIndexPath

if (self.maxValue == nil) {
   self.maxValue = [[UISlider alloc] initWithFrame:CGRectMake(130.0, 6.0, 140.0, 30.0)];
   self.maxValue.minimumValue = [self.selectedControl.minValue floatValue]; 
   self.maxValue.maximumValue = 1.0;
}
self.maxValue.value = [self.selectedControl.maxValue floatValue];

//Init UILabel
if (self.maxLabel == nil) {
   self.maxLabel = [[UILabel alloc] initWithFrame:CGRectMake(100., 6., 100., 30.)];}
   self.maxLabel.text = [NSString stringWithFormat:@"%.2f", [self.selectedControl.maxValue      floatValue]];
}
cell.textLabel.text = @"Max. Value";

//Add UILabel and UISlider
[cell.contentView addSubview:self.maxLabel];
[cell.contentView addSubview:self.maxValue];

and the result is
IMG LINK (sorry i’m unable to post images)

the position of the UILabel is correct, but the position and size of the UISlider is ignored.
If i change the order of the addSubview commands, always the second added view is wrong.
What is wrong? and thanks for your HELP
best regards

  • 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-05-20T05:02:47+00:00Added an answer on May 20, 2026 at 5:02 am

    Found the problem.
    I had the two UISliders as IBOutlets in the IB to add the deligates.
    That seems to be the problem, now i removed the outlets and coded the deligates myself.
    And it just works 🙂

    Thanks for your believes in me!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should be easy but its got me stumped. I've got a button on
I got app with UITableView. There is UILabel in each UITableViewCell. I add labels
Currently I'm trying to customize delte button in UITableViewCell. Now I've got something like
I've got a subclass of UITableViewCell . My subclass contains several UILabel s. I
I got this strange issue while working with iPhone SDK 3.1.2. My UITableViewCell contains
I was looking for something and got in to this enum is apple UITableViewCell.h.
Got this error message while trying to load view: The model item passed into
Got a question for some jQuery wizard who might stumble upon this. When I
got a problem, can't get my head around this jquery and would appreciate your
I've got a custom UITableViewCell implementation (leveraging labels as subviews) that is rendering the

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.