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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:16:02+00:00 2026-06-15T21:16:02+00:00

I have a custom UITableView integrated in my ViewController , with more elements, and

  • 0

I have a custom UITableView integrated in my ViewController, with more elements, and I tried to add to the UITableView a control to refresh its content, like twitter app. The problem is that I can’t capture the scrolls of the tableview in the ViewController. If I set the delegate of the custom UITableView, then I can capture the scrolls but I get troubles with the custom table behavior.
So, I don’t know what it’s better, either find the way to add the delegate for scrolls without override anything or find a way to add the control to refresh the table from the ViewController, not from the UITableView class.

The case with more details is:

  • A library for the custom UITableView. It’s used to draw a conversation like the message app. So I just pass the information to the table and the table draw it. I don’t do anything more, not delegate, nothing, just add the table to my ViewController.

  • I put the methods of the scroll’s delegate in my ViewController, and, when I do scroll in the table, I don’t get anything(the app doesn’t enter in the scroll’s delegate methods). If I set the table’s delegate to self, the scroll works but I get some random problems from the table( I don’t know how it’s made the table), so I have to discard this option(set the delegate).

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-15T21:16:04+00:00Added an answer on June 15, 2026 at 9:16 pm

    Try using the UIRefreshControl object. You define this object in the viewController in the viewDidLoad method and add the target to your tableView when it’s value changes, here is an example:

    self.refreshControl = [[UIRefreshControl alloc] init];
    [self.refreshControl addTarget:self.tableView action:@selector(reloadData) forControlEvents:UIControlEventValueChanged];
    

    Your viewController needs to be a UITableViewController however. To initiate and end the refresh use the methods:

    [self.refreshControl beginRefreshing];
    [self.refreshControl endRefreshing];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large custom UITableView with UILabels in each row, and I'd like
I have a custom UITableView with its clearColor background. I'm setting the cell's backgroundView
I want to have a custom cell in my UITableview. I have tried it
I have created a custom UITableView and I want to add it to the
I have a custom UITableView cell that has a UIImageView sized to the width
i have a custom UITableView Cell, i have selected a particular cell and goes
I have cells in UITableView , I have made custom frame for the label
I have a UITableView with custom UITableViewCells , each of them has a UITextField
I have a uitableview with custom uitableviewcell. To hide keyboard user should scroll up
I have a program where a UITableView contains custom cells loaded from nibs. These

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.