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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:50:02+00:00 2026-05-24T13:50:02+00:00

I wish to display a dynamic set of data (pulled live over a TCP

  • 0

I wish to display a dynamic set of data (pulled live over a TCP connection) on the iPhone that is not too unlike lines from a terminal.

This means that the lines will be very long and really cannot be wrapped.

What is the best way of accomplishing this?

I want to use a UITableView because then memory issues would be less of a concern because the lines of text would be loaded/unloaded automatically each line of text would be a cell.

I have thought about this a bit and I came up with a possible solution, but I am not sure if it would actually work.

I could put a UITableView in a UIScrollView and only let the containing UIScrollView scroll horizontally.

Then I would adjust the frame of the UITableView and UITableViewCells so that they are much wider as calculated by the longest line of text.

I have read that you really don’t want to nest a UITableView in a UIScrollView since UITableView is in fact a subclass of UIScrollView. Since UITableView is a subclass of UIScrollView, is there someway I can enable the horizontal scrolling and make the frame wider?

If either of those ideas would actually work, could you also tell me which properties I should change (frame or contentSize etc).

  • 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-24T13:50:03+00:00Added an answer on May 24, 2026 at 1:50 pm

    I ended up putting a UILabel in a UIScrollView and just kept an array of all the lines and made the UILabel the minimum necessary width and height.

    I then set the number of lines of the UILabel to the number of elements in the array. This works because there is no textwrapping.

    I think this should be fine performance wise, but we’ll see.

    You can see it in action in my app Adminium for Bukkit/Minecraft:

    UILabel in a UIScrollview

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

Sidebar

Related Questions

I have a website with live stats that I wish to display to every
I have two panels that i wish to display to the user. I decided
I have a html.actionlink that i wish to display a link to a members
I have a list of items that I wish to display with a separator
I wish to display the passions for all the user that was displayed in
On my main window I have a DataGridView that I wish to display my
When the user hovers over a specific element, I wish to display a div
I have a gridview that I wish to display gridlines only on certain rows.
In a certain case I do not wish to display a the content of
I wish to display the TCP flags as a column in the display window.

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.