how to display UIActivityindicator in UITableView on iphone
<p>i struggled almost 1 hour but i couldn't  figure it out as how to display UIactivity indicator in UItableview as i cant use IB in UItableview(its not dragging) on iphone</p>

<p>i used this and its working 
but i want to display in viewDidload </p>

<pre><code>- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{

//loadingView =[LoadingView loadingViewInView:[self.view.window.subviews objectAtIndex:0]];//.window.subviews
    NSLog(@"dgdddddddddddddddddddd");
    UIView* customView = [[UIView alloc] initWithFrame:CGRectMake(130, 10, 25, 25)];

    //UIView* customView = [[UIView alloc] initWithFrame:CGRectMake(0.0, 30.0, 320.0, 60.0)];
    activityView.center=customView.center;
    [activityView startAnimating];
    [ customView bringSubviewToFront:activityView];
    [customView addSubview:activityView];// [headerLabel release];

    return [customView autorelease];       
}
</code></pre>

<p>kindly suggest </p>
