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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:33:56+00:00 2026-05-18T07:33:56+00:00

Suppose I have an application that will draw 20 little UIImageViews on the screen.

  • 0

Suppose I have an application that will draw 20 little UIImageViews on the screen. Suppose 20 playing cards faced down. So, you have the same image 20 times on the screen.

Suppose I have two cases:

CASE 1

I have a method not on a class that loads the card back texture, applies to a UIImageView and positions it on the screen. This method is run 20 times, so all cards are put on screen as image views.

CASE 2

I have a class that once initialized will load the card background image, apply to a UIImageView and deliver it as an object.

Suppose that now I want to animate the 20 cards, using simple UIImageView translation.

Looking by the point of view of memory consumption, CPU load and run time execution which of the two cases I mentioned will be lighter for the application and consume less memory?

thanks.

  • 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-18T07:33:57+00:00Added an answer on May 18, 2026 at 7:33 am

    Almost certainly doesn’t matter. The real constraint is probably views and GPU memory, which will be the same because you’re still creating the same 20 UIImageViews. Your setup cost is almost certainly minuscule in either case in any of the categories you mention. And 20 images is probably no problem either. Make sure the images are sized reasonably. And load them with UIImage’s +imageNamed: method to take advantage of caching in the frameworks.

    You can profile with Instruments (via Xcode) if you’d like to actually determine specific performance differences.

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

Sidebar

Related Questions

Suppose you have two seperate ASP.NET Web Application projects that both need to use
Suppose I have some application A with a database. Now I want to add
Suppose I have a class 'Application'. In order to be initialised it takes certain
Say suppose 10 developers have taken 6 months to develop some application. As a
Suppose I have a stringbuilder in C# that does this: StringBuilder sb = new
Suppose I have a folder application/uploads EDIT application/uploads/{a}/{b}/{c}/{d}/{e}/{f}/{g}/abcdefghijklmnopqrstuvwxyz {a},{b},{c},{d},{e},{f},{g} - are hash keys, any
Suppose I have two applications written in C#. The first is a third party
Suppose you have 2 different ASP.NET applications in IIS. Also, you have some ASCX
Suppose you have an ActiveRecord::Observer in one of your Ruby on Rails applications -
Suppose we have a table A: itemid mark 1 5 2 3 and table

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.