开发中经常使用的HUD 如果只是简单的提示转圈并且有一个背景的话我是这么做的 下面是简单的代码
UIActivityIndicatorView *indicatorView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
CGRect frame = indicatorView.frame;
frame.size = CGSizeMake(80, 80);
indicatorView.frame = frame;
indicatorView.center = CGPointMake(self.view.frame.size.width / 2, self.view.frame.size.height / 2);
indicatorView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.4];
indicatorView.layer.cornerRadius = 10;
indicatorView.layer.masksToBounds = YES;
[self.view addSubview:indicatorView];
[indicatorView startAnimating];
这段代码在iOS开发中很简单了 下面贴上一个效果图

03BD7104-6694-4541-824F-0FBEE794A02D.png
效果和第三方的差不多吧 自己可以在简单的封装