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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:57:20+00:00 2026-06-04T16:57:20+00:00

I have a view that has UIButtons that respond to dragging events. That all

  • 0

I have a view that has UIButtons that respond to dragging events. That all works fine, the issue is that the button is only 70X70 and the image for the button gets largely covered up with your finger when dragging (the process is that the user drags the image (UIButton) onto a target area on a view). Is there a way to offset the drag handle so it isn’t the center point of the UIButton? Ideally I would want it to be the top right of the image for the UIbutton, because the bottom left is the area I care most about the user seeing.

EDIT: Here is the code I am using to handle the touch (drag) events:

- (IBAction) imageTouch:(id) sender withEvent:(UIEvent *) event
{
    UIButton *thisButton = (UIButton *)sender;

    CGPoint centerPoint = [[[event allTouches] anyObject] locationInView:self.view];
    UIControl *control = sender;
    control.center = centerPoint;

    UIColor *selColor = [WebImageOperations getColorFromImage:self.targetImageView.image atX:point.x andY:point.y];

    NSInteger thisScore = [Scoring scoreFromUIColor:selColor withArrow:thisButton.tag];

    switch (thisButton.tag) {
        case 10:
            arrow10Score = thisScore;
            self.score10Label.text = [NSString stringWithFormat:@"%d", arrow10Score];
            break;
        case 12:
            arrow12Score = thisScore;
            self.score12Label.text = [NSString stringWithFormat:@"%d", arrow12Score];
            break;
        case 14:
            arrow14Score = thisScore;
            self.score14Label.text = [NSString stringWithFormat:@"%d", arrow14Score];
            break;

        default:
            break;
    }

    NSInteger totalScore = arrow10Score + arrow12Score + arrow14Score;
    self.totalScoreLabel.text = [NSString stringWithFormat:@"%d", totalScore];
}
  • 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-04T16:57:21+00:00Added an answer on June 4, 2026 at 4:57 pm

    I don’t think this is possible. If someone comes across this question and has a solution, please post it here and I will mark that answer as the correct one.

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

Sidebar

Related Questions

I have a View that has a single TextBox and a couple Button s
I have a very simple application that has only 2 view controllers. The initial
I have an iphone app that has a root view with a button that
I have a view that has multiple views inside it, and an image presentation
Scenario: I have a view that has some DataTemplate resources <DataTemplate x:Key=myDragCueTemplate> <Border Background=Blue
I'm using MVC2 with VS2010 I have a view that has two partial views
I have a picker view that has a list of numbers to pick from.
I have a grid view that has two simple columns, a report number and
I have a Backbone View that has a Collection as its Model. If the
I have a view controller that has a tableView in it. When I set

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.