问题描述
我不确定我想做什么,因为我对此很陌生.我已经在WorldWeatherOnline.com上注册了一个免费的API帐户,该帐户允许使用免费和商业用途.
I am not sure if what I want to do is possible, as i am fairly new to this. I have signed up for a Free API account with WorldWeatherOnline.com which allows usage of free and commercial use.
我想做的是,当用户访问我的应用的某个ViewController时,显示特定位置的3天天气.我不是要通过GPS询问他们的位置,而只是显示当前天气的设定位置.
What I want to do is have the 3 days weather displayed for a specific location when a user visits a certain ViewController of my app. I'm not looking to ask them for their location via GPS, just display a set locations current weather.
我可以生成请求URL并以XML格式或JSON输出,但不知道如何将其实现到我的应用程序中(如果可能的话)
I can generate a Request URL and output in XML format or JSON, but have no idea how to implement them into my app (if it is possible?)
谢谢
推荐答案
检查最佳天气API ,
阅读博客教程,其中包含
Read the blog tutorial with sample code for
向您的应用添加本地天气条件(第2/2部分:访问Google的XML Weather API)
这篇关于包括天气信息,iPhone App,天气API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!