ViewController.h
================
@interface ViewController : UIViewController{
UIAlertView *alertLoader;
}
@end
ViewController.m
================
- (void)viewDidLoad
{
[super viewDidLoad];
[self methodtocallWebservices];
}
-(void)methodtocallWebservices{
alertLoader = [[UIAlertView alloc] initWithTitle:@"" message:@"Please Wait..." delegate:self cancelButtonTitle:nil otherButtonTitles:nil];
alertLoader.tag=1;
[alertLoader show];
}
- (void)didPresentAlertView:(UIAlertView *)alertView
{
if (alertView.tag== 1) {
UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
indicator.center = CGPointMake(alertView.bounds.size.width/2, alertView.bounds.size.height/3 * 2);
[indicator startAnimating];
[alertView addSubview:indicator];
NSString *hostStr = @"@"http://rajuandroid.blogspot.com/api/contact_name_json";
NSURL *url = [[NSURL alloc] initWithString:hostStr];
NSLog(@"login url: %@",url);
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
[[[NSURLConnection alloc] initWithRequest:request delegate:self] autorelease];
[url release];
}
}
-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data{
// [self.receivedData appendData:data];
}
-(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error{
[self stopLoading];
//[self handleError:error];
}
-(void)connectionDidFinishLoading:(NSURLConnection *)connection{
[self stopLoading];
}
-(void)stopLoading
{
dispatch_async(dispatch_get_main_queue(), ^{
[alertLoader dismissWithClickedButtonIndex:0 animated:YES];
[alertLoader release];
});
}
================
@interface ViewController : UIViewController{
UIAlertView *alertLoader;
}
@end
ViewController.m
================
- (void)viewDidLoad
{
[super viewDidLoad];
[self methodtocallWebservices];
}
-(void)methodtocallWebservices{
alertLoader = [[UIAlertView alloc] initWithTitle:@"" message:@"Please Wait..." delegate:self cancelButtonTitle:nil otherButtonTitles:nil];
alertLoader.tag=1;
[alertLoader show];
}
- (void)didPresentAlertView:(UIAlertView *)alertView
{
if (alertView.tag== 1) {
UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
indicator.center = CGPointMake(alertView.bounds.size.width/2, alertView.bounds.size.height/3 * 2);
[indicator startAnimating];
[alertView addSubview:indicator];
NSString *hostStr = @"@"http://rajuandroid.blogspot.com/api/contact_name_json";
NSURL *url = [[NSURL alloc] initWithString:hostStr];
NSLog(@"login url: %@",url);
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
[[[NSURLConnection alloc] initWithRequest:request delegate:self] autorelease];
[url release];
}
}
-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data{
// [self.receivedData appendData:data];
}
-(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error{
[self stopLoading];
//[self handleError:error];
}
-(void)connectionDidFinishLoading:(NSURLConnection *)connection{
[self stopLoading];
}
-(void)stopLoading
{
dispatch_async(dispatch_get_main_queue(), ^{
[alertLoader dismissWithClickedButtonIndex:0 animated:YES];
[alertLoader release];
});
}
IT WORKS !!! THANKS
ReplyDeleteThanks....
DeleteReally informative article.Thanks Again. Really Great.
ReplyDeleteInformatica Power Center Best Online Training
It has been simply incredibly generous with you to provide openly what exactly many individuals would’ve marketed for an eBook to end up making some cash for their end, primarily given that you could have tried it in the event you wanted.
ReplyDeleteDevops Training in Chennai
Woah this blog is wonderful i like studying your posts. Keep up the great work! You understand, lots of persons are hunting around for this info, you could help them greatly.
ReplyDeleteHadoop Training in Chennai
Hadoop Training in Bangalore
Big data training in tambaram
Big data training in Sholinganallur
Big data training in annanagar
Big data training in Velachery
Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
ReplyDeleteDevops Training in Chennai
Devops Training in Bangalore
Devops Training in pune
Devops training in tambaram
Devops training in velachery
I was recommended this web site by means of my cousin. I am now not certain whether this post is written through him as nobody else recognise such precise about my difficulty. You're amazing! Thank you!
ReplyDeletepython training institute in chennai
python training in velachery
python training institute in chennai
Fantastic work! This is the type of information that should follow collective approximately the web. Embarrassment captivating position Google for not positioning this transmit higher! Enlarge taking place greater than and visit my web situate
ReplyDeleteData Science course in kalyan nagar | Data Science course in OMR
Data Science course in chennai | Data science course in velachery
Data science online course | Data science course in jaya nagar
I was really excited about your daily updates. If you have new update me
ReplyDeleteSelenium Training in Chennai
JAVA Training in Chennai
Big Data Training in Chennai
Hadoop Training in Chennai
iOS Training in Chennai
Selenium Courses in Chennai
Hi, Your post is quite great to view and easy way to grab the extra knowledge. Thank you for your share with us. I like to visit your site again for my future reference.
ReplyDeleteJava Training center in Chennai
Java Certification course in Chennai
Java Coaching Center in Chennai
Best Java Training in Chennai
Best Java Training Institute in Chennai with placement
Java J2ee Training in Chennai
This blog is more effective and it is very much useful for me.we need more information please keep update more.
ReplyDeletemobile app development training in bangalore
Best Android Training Institute in Anna nagar
Android Training Institutes in T nagar
Android Training in Karapakkam
Very impressive blog! i liked it and was very helpful for me.Thanks for sharing. Do share more ideas regularly.
ReplyDeleteSpoken English Classes in OMR | Spoken English Classes in Perungudi | Spoken English in Chennai | Best Spoken English Institute in Chennai | Spoken English Classes in Siruseri | Spoken English Classes in Karapakkam | Spoken English Training center in Chennai
Awesome Post. Thanks for Sharing. Kepp updating.
ReplyDeleteTableau Training in Velachery
Tableau Courses in Velachery
Tableau Training in Tambaram
Tableau Courses in Tambaram
Tableau Training in Adyar
Tableau Courses in Adyar
Excellent post! keep sharing such a post
ReplyDeletewblogin
Article submission sites
Excellent and useful blog admin, I would like to read more about this topic.
ReplyDeleteBlue Prism Training Institute in Chennai
Blue Prism course in Chennai
Blue Prism Training in Velachery
AWS Training in Chennai
Angularjs Training in Chennai
RPA Training in Chennai
It is an amazing post. Keep sharing this kind of worthy information.
ReplyDeleteMobile Testing Course in Chennai | Mobile Testing Training in Chennai | Mobile Automation Testing Training in Chennai | Mobile Testing Course in Adyar | Mobile Testing Training in Velachery | Mobile Testing Training in Tambaram
This comment has been removed by the author.
ReplyDeleteAll the points you described so beautiful. Every time i read your i blog and i am so surprised that how you can write so well.
ReplyDeleteangularjs Training in chennai
angularjs Training in chennai
angularjs-Training in tambaram
angularjs-Training in sholinganallur
angularjs-Training in velachery
Excellent content!!! After reading your blog, I am curious to read the next part of the blog.
ReplyDeleteSelenium training in Chennai
Selenium Courses in Chennai
best ios training in chennai
Digital Marketing Training in Chennai
JAVA J2EE Training Institutes in Chennai
Selenium Interview Questions and Answers
iOS Training Chennai
iOS Training in Chennai
the blog is nicely maintain.when i read this blog i got lot of ideas and information.thanks to improve my knowledge.
ReplyDeleteRPA Training Institute in Chennai
RPA course in Chennai
Blue Prism Training Institute in Chennai
UiPath Training Institutes in Chennai
Great blog thanks for sharing
ReplyDeleteBest DevOps Training in Chennai
Fabulous post admin, it was too good and helpful. Waiting for more updates.
ReplyDeleteDevOps Training in Chennai
Data Science Course in Chennai
Blue Prism Training in Chennai
R Programming Training in Chennai
RPA Training in Chennai
Thank you for an additional great post. Exactly where else could anybody get that kind of facts in this kind of a ideal way of writing? I have a presentation next week, and I’m around the appear for this kind of data.
ReplyDeleteDevops Training in Chennai | Devops Training Institute in Chennai
This comment has been removed by the author.
ReplyDeleteAfter reading your article I was amazed. I know that you explain it very well. And I hope that other readers will also experience how I feel after reading your article.
ReplyDeleteCorrelation vs Covariance
"NICE
ReplyDeleteDigital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery
"
this post really very useful to me..keep share!!!
ReplyDeleteandroid training in chennai
android online training in chennai
android training in bangalore
android training in hyderabad
android Training in coimbatore
android training
android online training
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…
ReplyDeleteweb designing training in chennai
web designing training in velachery
digital marketing training in chennai
digital marketing training in velachery
rpa training in chennai
rpa training in velachery
tally training in chennai
tally training in velachery
ExcelR provides data scientist course in pune. It is a great platform for those who want to learn and become a Business Analytics. Students are tutored by professionals who have a degree in a particular topic. It is a great opportunity to learn and grow.
ReplyDeletedata scientist course in pune
Data science course
Data scientist course
Data science course in pune
Here at this site is really a fastidious material collection so that everybody can enjoy a lot.
ReplyDeletebusiness analytics course in hyderabad
I will truly value the essayist's decision for picking this magnificent article fitting to my matter.Here is a profound depiction about the article matter which helped me more.
ReplyDeletedata science classes in hyderabad
This comment has been removed by the author.
ReplyDelete