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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:43:49+00:00 2026-05-26T18:43:49+00:00

I’m trying to create an user interface like the one is presented in App

  • 0

I’m trying to create an user interface like the one is presented in App Store application (iPad device). This is a sort of scrollable grid (horizontal scroll) where each element consists in an overview of an application that can be selled in the app store (each element consist of an image, a title, and so on). My goal is the same. I’m interested in developing a UIScrollView where elements are arranged and displayed. Each UI element consists in a image and a description.

Moving from the previous considerations, I developed an ItemViewController.h/.m and the relative .xib (ItemView.xib). Each element can respond to actions like the tap. The ItemViewController.m manages this tap since it’s its File’s Owner. An element is created with initWithNibNamad method in the class MainViewController.h/.m. This class contains the UIScrollView. Then, the view associated with the item is added to the UIScrollView.

Since it’s possible to have more than one item, could you give me some suggestions to manage the ItemViewController items in MainViewController? Do I have to store each reference to ItemViewController in a dictionary (for example)? In a first moment I also considered to set MainViewController as ItemView.xib File’s Owner, but I think the problem for managing items could remain.

Thank you in advance. I hope it’s all clear.

  • 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-26T18:43:49+00:00Added an answer on May 26, 2026 at 6:43 pm

    It sounds to me like you have this structured backwards. You shouldn’t be storing items presented in by the interface in your controller. You should have a model that contains your items that your controller uses to construct the views of your interface.

    So you have a model containing a list of products and their associated metadata. Your controller queries that list, constructs a view for each item in it, and adds those views to the app’s view hierarchy (maybe in a scroll view, like you suggest). Any interaction with those views calls back to the controller which then makes changes to the model. Any changes to the model should post a notification that the controller listens for so that it knows to update (or just reload) its presented views appropriately.

    Note that in this arrangement, one item in your model can be represented in the interface multiple times. Say you’re presenting a list for items tagged as “Giant” and a list for items tagged as “Green”. If you had a “Jolly Green Giant” product, it would be represented in both lists. But because the same item in your model is the source for both, any changes to one is automatically reflected by the other. This is generally the desired behavior (if you deleted “Jolly Green Giant” from the “Green” list, you’d also want it to be deleted from the “Giant” list).

    For more information, read up on the Model View Controller (MVC) pattern.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Basically, what I'm trying to create is a page of div tags, each has
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I have some data like this: 1 2 3 4 5 9 2 6
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I would like to count the length of a string with PHP. The string

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.