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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:09:34+00:00 2026-05-26T05:09:34+00:00

In my application, I have a mainViewController that has a bunch of letter tile

  • 0

In my application, I have a mainViewController that has a bunch of letter tile UIImageViews. You can pan the letters around on this mainViewController to spell out words.

I also have popover viewcontrollers that contain letter tiles that you can drag out onto the mainViewController. Once the letter tiles are dropped onto the mainViewController, they need to have access to all the same methods that the letter tiles do that already exist on the mainViewController.

Currently, I create the letter tiles in the mainViewController and the popover viewcontrollers separately. Both the mainViewController and popover viewcontroller’s parent classes are UIViewController.

I was wondering if in my situation, I should be declaring all letter tiles contained in my popover viewcontrollers in the mainViewController class, then have the popoverview controllers be a subclass of mainViewController?

If I should change it, can you please tell me why it would be better to?

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-26T05:09:34+00:00Added an answer on May 26, 2026 at 5:09 am

    Objective-C is famous for preferring delegation over subclassing.

    I would rather use a datasource class that knows of all the tiles and their methods and use it in both controllers.

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

Sidebar

Related Questions

I have an application , that has one mainviewcontroller with some button.When i click
I have an application that has a button and a label. When the button
I have an application that has many views (Using tab bar controller). I want
i am having a problem with my application,.i have this code in my mainviewcontroller
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
In My application have time consuming process.There fore i try to do that operation
My Application has 3 activities (MainActivity,SampleActivity,TempActivity) and Application have to start from MainActivity because
During application development I have problems to support the right application architecture. This is
I have an application with Textfields in my MainViewController.m file. There is also a
Before the user can use my application he has to login. After he logged

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.