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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:58:41+00:00 2026-06-15T23:58:41+00:00

I have created a uiview subclass, and instantiated it (lets call it the master

  • 0

I have created a uiview subclass, and instantiated it (lets call it the master view). This uiview subclass contains it’s own gesture recognizers and touch event overrides as well as the animations corresponding to these touch events (e.g. rotation and flipping).

I would like to create another instantiation of this subclass (or similar subclass) that we will call the slave view. The slave view should be identical to the master in appearance, but will not respond to touch events itself. Instead, the slave should in essence be a remote controlled drone that animates in lock step with master view.

I was trying to get my brain around how to do this… it seems that maybe I could create a slave subclass such that the master can call animation delegate methods for the slave view. So every animation call in the Master would also call a method in the slave with the same transform.

The parent view will have multiple master-slave pairs, each master-slave pair animated independently. I really prefer not to move the gesture-recognizers and animation to the parent level.

Any thoughts on a code pattern for this master-slave pair? My understanding of calling delegates might be challenged, but I get the feeling that delegate methods will not work here when I go to more than one master/slave pair?

  • 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-15T23:58:42+00:00Added an answer on June 15, 2026 at 11:58 pm

    Which object creates the slave? The parent view or the master? If you have master create its own slave, then it can set itself as the delegate of the slave. There shouldn’t be any trouble with having multiple pairs, because each master will be the delegate of a specific instance of the slave class.

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

Sidebar

Related Questions

i have created a custom view class which is a subclass of UIview class
I want to achieve something like this inside a UIView: I have created a
I have subclass UIView class in a Bounce class with Accelerometer. This Bounce class
I have created a custom subclass of UIView for an interface element that I
I have succesfully created a view hierarchy programmatically. I now want to replicate this
I created a subclass of UITableViewCell and added two identical UIView s that have
I created a UIView subclass associated with .xib file. This UIView subclass is to
I have created a UIView subclass in order to implement a custom drawRect method.
I have created a subclass of UIView and I would like to have it
Hope you can help. I have created my own Custom UIView and I'm trying

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.