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

The Archive Base Latest Questions

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

I am creating some UITableViewCells with several custom items inside, my question is what

  • 0

I am creating some UITableViewCells with several custom items inside, my question is what route to go:

1) Add all I need as separate views to contentView, using UILabels for text and UIImageViews for images (currently using this)

or

2) Add a single subclassed View to contentView, and all my text as NSString then my Images and UIImages and draw everything at drawRect

What would perform better, and in what scenarios would one be the better choice over the other?, as I see it unless you are actually drawing lines or something in the contentView, simply going with option 1 would be easier, and according to this Cocoa with love custom cells it is more efficient although it is a bit old, so I don’t know if this has changed.

So what is better for performance and in which situation would you definitely use one over the other?

  • 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-26T00:33:11+00:00Added an answer on May 26, 2026 at 12:33 am

    Start with the first method of using separate UILabel’s and UIImageView’s. Test on actual devices and optimize if you see performance problems.

    Depending on the content I’ve had option 1 be faster than drawing everything in one view. Especially when that view had to draw images. UIImageView’s are heavily optimized by apple.

    A good way to get metrics on performance is the Core Animation instrument.

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

Sidebar

Related Questions

I'm creating some custom work items in TFS and the helptext field seems handy
I'm creating some text boxes on my form programmatically which I need to reference
I'm creating some big files (DB exports) with Java and I need to put
I am creating a custom UITableViewCell to include an UIImageView and some related text.
I am creating some sessions on successful login and I need to access them
I'm creating some xslt's using Umbraco 4.5.2 and I want to add de set:distinct
I am loading some images dynamically into a UITableView and creating some simple custom
I'm creating some little sprites with a bmp inside the constructor of another view
i am creating some custom exceptions as follows lib/exceptions.rb module Exceptions class MemberOverFlow <
I am creating some build scripts that interact with Perforce and I would like

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.