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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:26:36+00:00 2026-05-11T00:26:36+00:00

I would like to show a set of consecutive numbers in a UIPickerView component

  • 0

I would like to show a set of consecutive numbers in a UIPickerView component but have it wrap around like the seconds component of the Clock->Timer application. The only behavior I can enable looks like the hours component of the Timer application, where you can scroll in only one direction.

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T00:26:36+00:00Added an answer on May 11, 2026 at 12:26 am

    It’s just as easy to set the number of rows to a large number, and make it start at a high value, there’s little chance that the user will ever scroll the wheel for a very long time — And even then, the worse that will happen is that they’ll hit the bottom.

    - (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component {     // Near-infinite number of rows.     return NSIntegerMax; }  - (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component {     // Row n is same as row (n modulo numberItems).     return [NSString stringWithFormat:@'%d', row % numberItems]; }  - (void)viewDidLoad {     [super viewDidLoad];      self.pickerView = [[[UIPickerView alloc] initWithFrame:CGRectZero] autorelease];     // ...set pickerView properties... Look at Apple's UICatalog sample code for a good example.     // Set current row to a large value (adjusted to current value if needed).     [pickerView selectRow:currentValue+100000 inComponent:0 animated:NO];     [self.view addSubview:pickerView]; }  - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component {     NSInteger actualRow = row % numberItems;     // ... } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to show divs at a specific interval (10 seconds) and show
i would like to show a TimeSpan in a MessageBox but am getting an
I have a list of around 30 divs (see below.) and would like to
I have a series of performance tests I would like to show as a
I would like to show Content in the UIWebView, which I have added to
I a view have for which I would like to show a ContextMenu on
I have a custom UIView on which I would like to show simple animated
I am not an expert in P4.NET plugin, but I would like to show
I would like to show the value of a variable in a TextView, like
I would like to show and hide a div during hover and hover out.

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.