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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:38:49+00:00 2026-06-13T12:38:49+00:00

Am using UIActivity indicator as UItableviewfooter, my code is shown here spinner = [[UIActivityIndicatorView

  • 0

Am using UIActivity indicator as UItableviewfooter,
my code is shown here

spinner = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
 spinner.frame=CGRectMake(0, 0, 310, 44);
[spinner startAnimating];

self.myTableView.tableFooterView=spinner;

this works quite well in simulator, but when i run it in device the activity indicator seems stretched in both axis as per the cell dimensions .

  • 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-13T12:38:49+00:00Added an answer on June 13, 2026 at 12:38 pm
    spinner.frame=CGRectMake(0, 0, 310, 44);
    

    Probably because you’re setting the width of the activity spinner as 310 pts. Instead, set it to 44 (to make the frame square), and adjust the x origin parameter to center it.

    I’m not able to test this at the moment, but it’d probably be in the form of:

    CGFloat activityWidth = 44;
    CGFloat activityHeight = 44;
    CGFloat tableFooterViewWidth = self.myTableView.tableFooterView.frame.size.width;
    
    spinner.frame=CGRectMake(tableFooterViewWidth - (activityWidth/2),
                             0,
                             activityWidth,
                             activityHeight);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a UIActivity Indicator View named as process. I declare property in
i need help here, i'm using a custom segue to push a view controller
I have implemented a bluetooth connection using the now-classic Google Bluetooth Chat code. However,
When I start UIActivityIndicatorView using StartAnimating method: [ActivityIcon startAnimating]; it disable all user interactions
I'm using a UIActivityIndicator inside a UIBarButtonItem to show activity, but the indicator is
I'm using UIActivity class for the first time, with very little modification: NSString *textToShare
Using a CSS image sprite, I'm creating an 'interactive' image where hovering over certain
Using a populated Table Type as the source for a TSQL-Merge. I want to
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using SQL Server 2008 R2 we are looking for a way to select the

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.