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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:58:44+00:00 2026-06-07T02:58:44+00:00

in the (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { if(indexPath.row==[self.peopleDataController countOfList]){ static NSString *CellIdentifier =

  • 0

in the

(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

if(indexPath.row==[self.peopleDataController countOfList]){

    static NSString *CellIdentifier = @"LastMoreCell"; 
    UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] ;
    moreButton = [[UIButton alloc] initWithFrame:CGRectMake(140, 2, 42, 42)];

    [moreButton setImage:[UIImage imageNamed:@"more.png"] forState:UIControlStateNormal];

    [moreButton addTarget:self action:@selector(showMoreRows:) forControlEvents:UIControlEventTouchUpInside];

    [cell addSubview:moreButton];
    return cell;
}
 }


-(void) showMoreRows:(id)sender {

    MyAuraAppDelegate *delegate = (MyAuraAppDelegate *) [[UIApplication sharedApplication] delegate];
refreshlast = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];

refreshSpinner.hidesWhenStopped = YES;

refreshlast.center = CGPointMake([[sender superview] superview].bounds.size.width / 2.0f, [[sender superview] superview].bounds.size.height / 2.0f);
[sender setHidden:YES];

[[sender superview].superview addSubview: refreshSpinner];
[refreshlast startAnimating];

    dispatch_queue_t dloadQueue = dispatch_queue_create("People refresh", NULL);
    dispatch_async(dloadQueue, ^{

        if ([[[GlobalVariable sharedInstance] peopleList] count] >0) {

            _peopleDataController = [_peopleDataController initPeopleListWithCoordinate:delegate.locationCoordinate2D auraId:delegate.myToken offset:0];


            NSLog(@"eerrrr %d",_peopleDataController.peopleList.count);

            //     _peopleDataController.peopleList=[[GlobalVariable sharedInstance] peopleList];
            for (int i=0; i< [_peopleDataController.peopleList count]; i++) {
                [[[GlobalVariable sharedInstance] peopleList ] addObject:[_peopleDataController.peopleList objectAtIndex:i]];                
            }

            _peopleDataController.peopleList =[[GlobalVariable sharedInstance] peopleList] ;
            NSLog(@"eerrr33r %d",_peopleDataController.peopleList.count); 
        }

        dispatch_async(dispatch_get_main_queue(), ^{  
            [self performSelector:@selector(addItem) withObject:nil afterDelay:2.0];
        });  
    });
    dispatch_release(dloadQueue);

}

but my UIActivityIndicatorView refresh last not show,can you give me some clue?

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

    i found my mistake is :[sender superview].superview is the tabview not the tableviewcell
    so last i modify my code:

    -(void) showMoreRows:(id)sender {
    
    UIButton *button=(UIButton*)sender;
        MyAuraAppDelegate *delegate = (MyAuraAppDelegate *) [[UIApplication sharedApplication] delegate];
    refreshlast = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
    
    refreshSpinner.hidesWhenStopped = YES;
    
    UITableViewCell *lastcell=(UITableViewCell*)[button superview];
    
    refreshlast.center = CGPointMake(lastcell.frame.size.width / 2.0f, lastcell.frame.size.height / 2.0f);
    NSLog(@"ddd %f",lastcell.frame.size.height);
    [button setHidden:YES];
    
    [lastcell addSubview:refreshlast];
    [refreshlast startAnimating];
    
        dispatch_queue_t dloadQueue = dispatch_queue_create("People refresh", NULL);
        dispatch_async(dloadQueue, ^{
    
            if ([[[GlobalVariable sharedInstance] peopleList] count] >0) {
    
                _peopleDataController = [_peopleDataController initPeopleListWithCoordinate:delegate.locationCoordinate2D auraId:delegate.myToken offset:0];
    
    
                NSLog(@"eerrrr %d",_peopleDataController.peopleList.count);
    
                //     _peopleDataController.peopleList=[[GlobalVariable sharedInstance] peopleList];
                for (int i=0; i< [_peopleDataController.peopleList count]; i++) {
                    [[[GlobalVariable sharedInstance] peopleList ] addObject:[_peopleDataController.peopleList objectAtIndex:i]];                
                }
    
                _peopleDataController.peopleList =[[GlobalVariable sharedInstance] peopleList] ;
                NSLog(@"eerrr33r %d",_peopleDataController.peopleList.count);
    
    
    
    
            }
    
            dispatch_async(dispatch_get_main_queue(), ^{  
    
    
                [self performSelector:@selector(addItem) withObject:nil afterDelay:2.0];
            }); 
    
    
        });
        dispatch_release(dloadQueue);
    

    }

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

Sidebar

Related Questions

Edited code - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @Cell;
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @Cell2; UILabel *titleLabel;
- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *LogCellId = @LogCellId; UITableViewCell *cell
- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *TelephoneCellId = @TelephoneCellId; UITableViewCell *cell
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CustomCellIdentifier = @CustomCellIdentifier; CustomCell *cell
- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *TodoListTableIdentifier = @TodoListTableIdentifier; TodoTableViewCellController
I have the following: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { if(indexPath.row==0) { static
I have the following code: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString
What I am having is - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString
This - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; if (cell.accessoryType

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.