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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:55:57+00:00 2026-06-19T02:55:57+00:00

I am looking for a way to implement a tick noise that plays every

  • 0

I am looking for a way to implement a tick noise that plays every time a cell passes a specific point on the screen (the center).

I have been pouring over the web but cant figure out where to start? Any direction would be great (not looking for someone to solve it for me, just some insight or advice)

Thanks!

UPDATE:

Here is the code I have implemented using your method, but it doesn’t work properly. It never seems to call the “Tick” nslog which means something in the parameters is incorrect. My tableview cells are 100 pixels tall. Any advice?

- (void) scrollViewDidScroll:(UIScrollView *)scrollView {



}

- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
{
    self.myTimer = [NSTimer scheduledTimerWithTimeInterval:1/30.0 target:self selector:@selector(checkTableViewScrollPosition) userInfo:nil repeats:YES];
}


- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView
{
    if (self.myTimer)
        [self.myTimer invalidate];
    self.myTimer = nil;
}


int currentContentOffset = 0;
int tableviewCellHeight = 100;
int thresholdValue = 50;


- (void) checkTableViewScrollPosition {


    int contentOffsetValue = _contentTableView.contentOffset.y;

     NSLog(@"%d", contentOffsetValue);


    if ((contentOffsetValue + tableviewCellHeight / 2) % tableviewCellHeight <= thresholdValue && currentContentOffset != contentOffsetValue ) {
        NSLog(@"Tick!");
        NSLog(@"%d", contentOffsetValue);


        currentContentOffset = _contentTableView.contentOffset.y;

    }


}
  • 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-19T02:55:58+00:00Added an answer on June 19, 2026 at 2:55 am

    Start by adding a property to your view controller to store the index path of the cell at the center of the table:

    @property (nonatomic, strong) NSIndexPath *currentIndexPath;
    

    Then, make sure that your view controller adopts the UIScrollViewDelegate protocol, and that your tableView is accessible via the self.tableview property (or change the code below to the appropriate property for the tableView).

    Then, implement the following method from the UIScrollViewDelegate:

    - (void)scrollViewDidScroll:(UIScrollView *)scrollView
    {
        // Find the indexPath of the cell at the center of the tableview
        CGPoint tableViewCenter = self.tableview.center;
        tableViewCenter = [self.tableview convertPoint:tableViewCenter fromView:self.tableview.superview];
        NSIndexPath *centerCellIndexPath = [self.tableview indexPathForRowAtPoint:tableViewCenter];
    
        // "Tick" if the cell at the center of the table has changed
        if ([centerCellIndexPath compare:self.currentIndexPath] != NSOrderedSame)
        {
            NSLog(@"Tick");
            self.currentIndexPath = centerCellIndexPath;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a way to implement a bidirectional RPC in node.js (means that
I looking for the best way to implement a block that lists all terms
I am looking for the best way to implement a real time diagram tool
I'm looking for a way to implement drag and drop with multi touch in
Looking for some advice on the best way to implement localization along with client
I'm looking for a good way to implement a truly modal dialog in Silverlight
I'm looking for ideas on how to implement a way to get web based
I am looking for way to implement iframe just like a frame. There is
I am looking for a way to implement MySQL and Perl to make a
I'm looking for a way to implement 'type' visitor over c++ typelist. Here, I

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.