To show loading animation
#import "BSLoader.h"
To show:
BSLoadingView*loader=[[BSLoader sharedInstance] showLoader];
To hide:
[[BSLoader sharedInstance] hideLoader:loader];
To change default circle size, call this line with your value anywhere before showing loader.
[[BSLoader sharedInstance] setDefaultCircleSize:10];
By default, loader will show at the center of screen. But you can specify it's rectanlge by using this:
BSLoadingView*loader=[[BSLoader sharedInstance] showLoaderInframe:CGRectMake(100, 100, 200, 200)];
You can choose from five different color schemes, call this before displaying loader.
[[BSLoader sharedInstance] setColorScheme:BSColorSchemeFive];