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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:38:50+00:00 2026-06-03T02:38:50+00:00

Im creating a custom control which consist of two layers in a donut shape.

  • 0

Im creating a custom control which consist of two layers in a donut shape. The middle is a button, while the donut part is a rotation wheel.

I have created the two parts as two individual UIControls with there own seperate images.

My problem right now is that the Second Control is overriding my First Control.

Is there a programmatically way to overlap the positions?

Storyboard screenshot:

enter image description here

Please focus on the particular view called buttonView. Rotary knob is the donut and Button is the middle button.

Thanks in advance.

  • 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-03T02:38:52+00:00Added an answer on June 3, 2026 at 2:38 am

    I assume your donut part is bigger than your middle part, right? If so I think you should be able to use the hitTest:WithEvent: function to distinguish the two. Your middle section needs to be below your outer section in the hierarchy though. hitTest will return the deepest view in the hierarchy that was touched.

    EDIT As per the extended comments, the problem was that they were reversed in the XIB. Switch them around and your mid-section will appear on top.

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

Sidebar

Related Questions

I'm creating a custom control, part of which is using the Graphics class to
I am creating a custom ASP.NET AJAX server control in which multiple instances of
I am creating a custom WPF control class which inherits from ComboBox. As I
I am creating a custom control which does hit testing on its children. I'm
I am creating a WPF custom control, a Button with an Image and Text
I'm creating a custom control that contains other controls, including two scroll bars, one
I'm creating a custom Editing Control for a DataGridView which is based on TextBox.
I am creating a custom control which has some properties on it. The problem
I'm creating a custom WPF control which derives from Grid. It's a Chess board
I am creating a custom control. I want the template for this control to

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.