摘 要: 基于iOS系统,在进行需求分析、功能分析和系统总体结构分析的基础上,设计系统内容的组织结构。 使用Objective-C编程语言在MacOS、Xcode和CocoaPods环境下开发天气App应用程序,主要功能模块包括主页信息、 天气查询和分享三部分,重点分析了天气查询模块的实现方法,列举了关键代码。天气App程序通过对接和风天气预报 API获取全国主要城市的气象资料,用户在网络连通的情况下,可针对性地查询目标城市的天气动态变化信息,方便用 户的出行和其他预防工作。同时通过分享功能,达到信息共享和好友互动的目的。 |
关键词: iOS系统;天气App;Objective-C编程语言;和风天气预报API |
中图分类号: TP311.1
文献标识码: A
|
|
Development and Application of the Weather APP Program Based on iOS |
LI Qingping ,MENG Xiangfang,SONG Guoshun
|
( Zhejiang Yuying Professional and College, Hangzhou 310018, China)
|
Abstract: Through the requirements analysis,the functional analysis and the system overall structure analysis,the paper designs the organization structure of the system content based on iOS.In the environment of MacOS,Xcode and CocoaPods,the weather APP program has been developed by using the Objective-C programming language.The three main function modules include the homepage,the weather information query and the weather information sharing.The implement method of the weather information query module has been analyzed emphatically with the critical code.The weather APP program acquires meteorological data of major cities in China through the connection to the HeWeather API.With Internet connection,users can specifically check the dynamic weather information of target cities,so as to make some preparation and prevention for travel.Meanwhile,the sharing function can be applied to achieve the purpose of information sharing and interaction among friends. |
Keywords: iOS;weather App;Objective-C programming language;heweather API |