-(UIView *)initLoader
{
UIView *indicatiorView = [[UIView alloc]initWithFrame:CGRectMake(0,0, 320, 480)];
indicatiorView.backgroundColor = [UIColor clearColor];
indicatiorView.alpha=0.8;
UIView *blackView=[[UIView alloc]initWithFrame:CGRectMake(85,200,150,60)];
blackView.backgroundColor=[UIColor blackColor];
blackView.layer.cornerRadius=10;
UILabel *reloadingLabel=[[UILabel alloc]initWithFrame:CGRectMake(0,0,150,25)];
reloadingLabel.text=@"Please Wait...";
reloadingLabel.textAlignment=UITextAlignmentCenter;
reloadingLabel.textColor=[UIColor whiteColor];
reloadingLabel.font=[UIFont boldSystemFontOfSize:16];
reloadingLabel.backgroundColor=[UIColor clearColor];
[blackView addSubview:reloadingLabel];
[reloadingLabel release];
UIActivityIndicatorView *indicatorView = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(65,30,22,22)];
indicatorView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhite;
[indicatorView startAnimating];
[blackView addSubview:indicatorView];
[indicatiorView addSubview:blackView];
[blackView release];
return indicatiorView;
}
Its really helping
ReplyDelete