Progress Indicators (Loading...)
When content is loading, a blank or static screen can make it seem like your app is frozen, resulting in confusion and frustration, and potentially causing people to leave your app.
*First Add MBProgressHUD From GitHub.Below is The Link.
*After Adding MBProgressHUD.h and MBProgressHUD.m Files To Project, Do the Following Procedure.
#import "MBProgressHUD.h"
@interface AppAppDelegate : NSObject <UIApplicationDelegate,MBProgressHUDDelegate,ProductListDelegate,NSXMLParserDelegate,UIPopoverControllerDelegate,UIAlertViewDelegate,UIPrintInteractionControllerDelegate,UIWebViewDelegate>
(Add Delegate Methods).
@property (nonatomic,retain) MBProgressHUD* HUD;
AppDelegate.M
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
HUD = [[MBProgressHUD alloc] initWithView:self.navigationController.view];
[self.navigationController.view addSubview:HUD];
HUD.delegate = self;
HUD.labelText = @"Loading...";
}
You Can Use in Your Project Like
[APP_DELEGATE.HUD hide:TRUE];
[APP_DELEGATE.HUD show:YES];
Good job
ReplyDelete