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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:48:26+00:00 2026-05-28T15:48:26+00:00

I have dragged an item into my tableview object. When the dragged item hover

  • 0

I have dragged an item into my tableview object.
When the dragged item hover over an item in tableview,
the item is redrawn with selection background. The image is as under

enter image description here

The row of the tableview is not selected, when i checked selectedRow method.

My requirement is when an item hover any item i should control its selection
and the background selection thereof.

Thanks,
iSight

  • 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-28T15:48:27+00:00Added an answer on May 28, 2026 at 3:48 pm

    To ‘control’ the selection of a TableViewCell when ‘hovering’ over such an item you will have to call this method:

    - (NSIndexPath *)indexPathForRowAtPoint:(CGPoint)point 
    

    It’s a method from the UITableView Class and uses the local coordinate system of your tableView. As is mentioned in the Apple Doc: http://developer.apple.com/library/ios/#documentation/uikit/reference/UITableView_Class/Reference/Reference.html

    When the method is called you will have a NSIndexPath returned. With it you can select the cell/item at that particular path.
    Mind, selecting a path manually doesn’t call the didSelectRowAtIndexPath delegate-method so if you want a certain method called from that delegate you will have to do that manually as well!

    This method is prolly called from the touchedDidMove method (where you also do the drag&drop) so getting the point needed for the method shouldn’t be a problem for you.

    You will figure it out 🙂
    Good luck.

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

Sidebar

Related Questions

I have dragged a empty asp.net table onto my webform. I generate all the
I have a UIToolbar where I have dragged a UIButton. When I set the
I have a UISlider acting as the scrubber. As the thumb is dragged I
I have 2 elements that both need to be dragged. The simplified markup is
I need to have elements that are dragged from left-hand side area to be
I understand that the WorkflowDesigner can receive a dragged item in several ways, for
I have 3 buttons on my main view (btn_easy, btn_medium, btn_hard) that I dragged
I have a list of objects that I use to add objects into a
I'm looking into if it's possible to have nestedSortable items to be force kept
i have the following situation (please see image below after reading the following): .dragoverlay

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.