I assume you put this method in the helper class, because you may want to use this for different view controllers.
So i would suggest to change for your method like this
+(void) AddActivityIndicatorOnView: (UIView *)view{
UIActivityIndicatorView *activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:
UIActivityIndicatorViewStyleWhiteLarge];
[activityIndicator setCenter:CGPointMake(view.frame.size.width/2.0, view.frame.size.height/2.0)];
activityIndicator.hidesWhenStopped = YES;
activityIndicator.color = [UIColor redColor];
[view addSubview:activityIndicator];
}
So whenever you need to add the activity Indicator, simply pass the view into the method like this
[FunctionHelper AddActivityIndicatorOnView:self.view];
I don't know if i understand your questions correctly, if there is anything missing, feel free to leave in the comments.