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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:08:10+00:00 2026-05-26T08:08:10+00:00

I am a newbie so any suggestions for the following problem I am having

  • 0

I am a newbie so any suggestions for the following problem I am having would be appreciated.

I have an app where you enter a number of items and then in a subsequent tableview, they will all load and I can assign each item a value using a uislider.

I know how to track and save the values if I know the exact number of items I will have but given that the number of uislider values I have to track depends on the number of items entered, I am not sure where to go.

So far in my sliderValueChanged method, I have the following which allows me to track each uislider subview:

- (IBAction)sliderChangedValues:(id)sender {
      UISlider *slider = (UISlider *)sender;
      CGPoint correctedPoint = 
      [slider convertPoint:slider.bounds.origin toView:self.tableView];    
      NSIndexPath *indexPath = 
      [self.tableView indexPathForRowAtPoint:correctedPoint];
      NSLog(@"Using slider in row %d", indexPath.row);
}

Here is my cellForRowAtIndexPath method for loading the cell:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath {   

Criteria *myCriteria = [criteriasRankingArray objectAtIndex:indexPath.row];


static NSString *CellIdentifier = @"CriteriaRankingCell";

OptionsDetailViewCell *cell = (OptionsDetailViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];

if (cell == nil) {
    [self.cellNib instantiateWithOwner:self options:nil];
    cell = optionsCell;
    self.optionsCell = nil;

}

cell.criteriaRankSlider.minimumValue = 1.00;
cell.criteriaRankSlider.maximumValue = [criteriasRankingArray count];
cell.criteriaRankSlider.continuous = YES;


cell.criteriaNameLabel.text = [NSString stringWithFormat:@"%@", myCriteria.criteriaName];
cell.criteriaRankSlider.value = [myCriteria.criteriaRank floatValue];


return cell;
}

How do I go about tracking each value and then where would I set each sliders value and save to context?

  • 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-26T08:08:10+00:00Added an answer on May 26, 2026 at 8:08 am

    You’re nearly there. In your sliderChangedValues method, add the following:

    Criteria *myCriteria = [criteriasRankingArray objectAtIndex:indexPath.row];
    myCriteria.criteriaRank = [NSNumber numberWithFloat:slider.value];
    

    I wouldn’t save the context in this method as you’ve got the slider set to continuous, so that could trigger lots of save messages. Save it when the user leaves the view or some other suitable point.

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

Sidebar

Related Questions

Absolute newbie question, any help is highly appreciated :) I am using curvycorners (
i am newbie for Android Development. i don't have any idea for creating Scientific
I'm definitely a newbie to ruby (and using 1.9.1), so any help is appreciated.
I am a Ruby newbie and I have been struggling with the following routing
I'm a relative newbie on iPhone app development but have successfully created a tab
I am a newbie with Matlab and I have the following scenario( which is
I'm an iPhone dev newbie, and I'm having a problem slightly similar to a
I'm a newbie to rails and am having some difficulty... I have a page
I'm a newbie programmer posting here for the first time. Any suggestions or advice
The project objective is something like this: We would have a locomotive robot having

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.