how get website title?
friends..
Now, I 'm trying to get website title from the url.. To do that , I should get http content first....
I used stringWithContentsOfURL to get http contents according to this following example.. Reading HTML content from a UIWebView
When I try "http://www.ap开发者_StackOverflowple.com" , I got correct results..
But, in case of "http://www.google.co.hk", I always get nil..
What's the problem in above code?
To get website contents always, how can I do that?
please help me...
thanks.
The problem is that URL is wrong. Try http://www.google.com.hk instead of http://www.google.co.hk
精彩评论