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

  • Home
  • SEARCH
  • 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 7195955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:41:02+00:00 2026-05-28T20:41:02+00:00

I have a number of NSStrings like this: NSString *eightlabel = @The process is

  • 0

I have a number of NSStrings like this:

NSString *eightlabel = @"The process is not permitted to remove material, double-sided upper and lower specification limits, default transmission band for both limits, R-profile, upper limit: arithmetic mean deviation 3,1 μm, evaluation length of five sampling lengths (default), “max-rule”, lower limit: arithmetic mean deviation 0,9 μm, evaluation length of five sampling lengths (default), “16 %-rule” (default.)";

these are added to an array like this:

self.pickerViewArray2 = [NSArray arrayWithObjects:
                             onelabel, twolabel, threelabel, fourlabel, fivelabel, sixlabel, sevenlabel,eightlabel,ninelabel,tenlabel,elevenlabel,twelvelabel,thirteenlabel,fourteenlabel,fifteenlabel,sixteenlabel,seventeenlabel,eightteenlabel,nineteenlabel,twentylabel, nil];

and then later recovered from uipickerview selection and displayed in a uitextview called example:

- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component{

    [myPicker selectRow:row inComponent:0 animated:YES];
    [myPicker reloadComponent:0];
    [myPicker selectRow:row inComponent:1 animated:YES];
    [myPicker reloadComponent:1];

    [example setText:[pickerViewArray2 objectAtIndex:row]];

} 

my uitextview is small only 280 x 128 so the text overruns and i need to scroll the textfield, however i would prefer to page the textfield horizontally.

how can i split the nssstring into pages that fit the textview and allow the user to scroll horizontally through the content as required.

the strings are all variable in length and some are small enough to need only one page
maximum pages will be probably 2 pages.

any ideas or suggestions will be appreciated.

  • 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-28T20:41:03+00:00Added an answer on May 28, 2026 at 8:41 pm

    UITextView doesn’t support columns or paged scrolling. You can use a UIPageViewController, or you can do it yourself using Core Text to draw to a custom view inside a UIScrollView.

    UIPageViewController is discussed in detail toward the end of the Implementing UIViewController Containment video from WWDC 2011.

    I happen to have some sample code that uses Core Text to lay out columns in a UIScrollView. You can find it here: https://github.com/mayoff/core-text-columns/ The ColumnView.m file contains most of the interesting code.

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

Sidebar

Related Questions

if i have a number of classes with something like @property (nonatomic, retain) NSString*
I have a phone number like this: 025639879 . I got it from the
I have a NSString which looks like this: http://fiskltd.com/components/com_jshopping/files/img_products/thumb_09afd9f041af34fb0cffec1e0b1222e8.jpg And I need extract from
I have an array named 'names' with strings looking like this: [name_23_something, name_25_something, name_2_something];
Can I have the number of rows dynamically? I'm trying to remove a tableView
I have a label that displays inches. I would like to display the number
I have a NSMutableArray, containing x different NSStrings (NSString but only numbers no letters).
I'm working on a project were we have number (5 at the moment) of
I have a number of macros written for Visual Studio 2005, but they have
I have a number of tracks recorded by a GPS, which more formally can

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.