Posts

Showing posts from September 4, 2017

Progress Indicators (Loading...)

Image
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. https://www.google.co.in/urlsa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwiMx9mwy4vWAhWCqY8KHXbCBj0QFgglMAA&url=https%3A%2F%2Fgithub.com%2Fjdg%2FMBProgressHUD&usg=AFQjCNFFF4StmFHOz4VYmfh7-GU-5HW9-A *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 ) MBProgressHU...

JSON Serializatioon

Image
- ( void )CallWebservice {     NSString *final_webserviceUrl = [ NSString stringWithFormat : @"%@Your URL" ];     NSString *parameters = nil ;          parameters = [ NSString stringWithFormat : @"Parameter1=%@&Parameter2=%@" , FirstName , LastName ];          NSURL *url = [ NSURL URLWithString :final_webserviceUrl];     NSMutableURLRequest *request = [ NSMutableURLRequest requestWithURL :url];          [request setHTTPMethod : @"POST" ];     [request setValue : @"application/json" forHTTPHeaderField : @"Accept" ];     [request setValue : @"application/x-www-form-urlencoded" forHTTPHeaderField : @"Content-Type" ];          NSData *requestData = [ NSData dataWithBytes :[parameters UTF8String ] length :[parameters length ]];     [request setHTTPBody : requestData];          NSError *errorRe...