JSON POSTDATA...
@property NSMutableURLRequest *loginURLRequest;
@property NSURLSessionConfiguration *loginURLSessionConfg;
@property NSURLSession *loginURLSession;
@property NSURLSessionDataTask *loginDataTask;
- (IBAction)loginTapped:(id)sender {
self.loginURLRequest=[[NSMutableURLRequest alloc]initWithURL:[NSURL URLWithString:@"http://www.brninfotech.com/pulse/modules/admin/ValidateLogin.php"]];
[self.loginURLRequest setValue:@"application/x-www-form-urlencoded; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
self.loginURLRequest.HTTPMethod=@"POST";
NSString * post=[[NSString alloc] initWithFormat:@"registeredEmail=%@®isteredPassword=%@&funcName=%@",self.email.text,self.password.text,@"verifyLogin"];
NSData * postData=[post dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
NSString * postLength=[NSString stringWithFormat:@" %lu ",(unsigned long)[postData length]];
[self.loginURLRequest setValue:postLength forHTTPHeaderField:@"Content-Length"];
[self.loginURLRequest setHTTPBody:postData];
self.loginURLSessionConfg=[NSURLSessionConfiguration defaultSessionConfiguration];
self.loginURLSession=[NSURLSession sessionWithConfiguration:self.loginURLSessionConfg];
self.loginDataTask=[self.loginURLSession dataTaskWithRequest:self.loginURLRequest completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) {
[AppDelegate SharedAppDelegateImplementation].profileDictionary=[NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
NSLog(@"got response from server %@",[AppDelegate SharedAppDelegateImplementation].profileDictionary);
[self.loginDataTask resume];
}