How would i achieve the following :
I have no idea what they are or how to replicate them.
The left one is some kind of transparent view that appears over the page and the right one is a square box that appears while the app is processing.
呃...
1) 是aUIView,背景为黑色,不透明度为0.9
2) UIActivityViewIndicator 是否位于另一个带有圆角的黑色 0.9 不透明视图之上,例如:
UIActivityIndicatorView *av = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
对于第一个,尝试将半透明子视图带到其他子视图的前面,然后是其他子视图的内容。或者,获取底层视图的图像并将该图像作为背景的模态视图与其他视图在其上,以获得您想要的视觉样式。
第二,看看MBProgressHUD。