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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:11:16+00:00 2026-06-05T22:11:16+00:00

I am creating a custom Table by designing my own UITableViewCell in Xcode and

  • 0

I am creating a custom Table by designing my own UITableViewCell in Xcode and loading it in cellForRowAtIndexPath. I am facing scrolling problems; the table scrolls really slow and not smooth at all. In each cell I have:

  • Either 2 or 3 UIImageView where the 3rd one is added dynamically when needed
  • 1 UILabel
  • 1 UITextView
  • Some cells might have 2 UIButton, some 1 UIButton, and the majority no buttons at all
  • In some cells I might add an overlay UIView

The sizes of the image views, text view, and buttons are different in every cell. To prevent calculating the sizes every time the table is scrolled I load all the sizes in viewWillAppear and store them in an array, and inside cellForRowAtIndexPath I only load the sizes from the array and set them to the desired objects.

I tried all the ideas that I found on the web (like loading the images in the body of if(cell == nil) as shown here, or not de-queue the cells…) but nothing solved my problem.

On the other hand I notice that the chatting app WhatsApp uses similar amount of items per cell (example when the user receives an image, there are 2 buttons View and Forward, the image thumbnail, a check mark image next to the thumbnail, a date label, a bubble image behind the thumbnail…) but the scrolling there is very smooth.

My scrolling is slow even if I have 10 cells in the table only. Here are my questions:

  1. Am I doing something dramatically wrong that I am not noticing?
  2. Is there a limit for the number of items that should be added to a custom cell to prevent slow scrolling?
  3. Is there a way to detect the reason of slow scrolling by using something like Product->Profile in Xcode?
  4. Can anyone suggest a solution for my problem?

Many thanks in advance.

  • 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-06-05T22:11:18+00:00Added an answer on June 5, 2026 at 10:11 pm

    Slow operation of a TableView when using images is NORMALLY because of resizing operations. The last app I made had images coming from the web. as an example, one image that was coming in was a 4k pixel x 4k pixel image. All others were much larger than the thumbnail sized image I was trying to display. Long and short of it is, every time an image goes off screen, the image is moved out of RAM and back into flash, this is to help preserve RAM memory. The problem is that what stays in flash is the original UIImage that you are assigning to your UIImageView. A UIImage retains the original sized image. Thus now every time the image comes back on screen it has to be RESIZED from its original size (smaller or bigger than you wish to display). Every time that 4k px x 4k px image came back on screen, the TableView would glitch. The trick is to size the images to exactly what you wish to display prior to assigning it to the UIImage backing the UIImageView. As an exemplary note, this table view only was displaying ~ 10 to 12 items at a time and it was still extremely slow (even after all images war completely loaded from the web).

    Another potential slowness. I had another app I built where I originally wished for the data being displayed to be selectable for copy and past. You can do this with UITextView objects. Problem is that the table of values I was outputting was 17 columns wide by 218 rows. In this case because each UITextView has scroll capability (even when I TURNED IT OFF) was causing each UITextView to have to re-calculated it’s own sub-view display coordinates, etc… causing very SLOW overall table scrolling. In the end, if the data doesn’t need to be edited, or copy and pasted, you really should only be displaying it with UILabel objects. When I did this, the performance of my UITableView went up immensely.

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

Sidebar

Related Questions

I'm creating custom table view cells, but result is incorrect. My code: - (UITableViewCell
I am having some problems creating custom types for my data table, using jquery.datatables.js.
I'm creating a custom table that has a button which allows a user to
I'm programatically creating a custom section header for a table that has a width
I am currently creating a custom e-commerce site (in php, but that's not really
I am creating a custom button and putting it in my table's footer view
I'm creating a view-based table view and I'm having some trouble creating a custom
I am creating a custom UITableViewCell with UILabel inside. When I am setting too
I'm creating custom UITableViewCells using the approach outlined on this page: http://icodeblog.com/2009/05/24/custom-uitableviewcell-using-interface-builder/ So my
I'm creating a custom UITableViewCell , similar in style to UITableViewCellStyleValue1 but with an

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.