基于YAML的iOS应用开发框架
iOS Application Development Framework Based on YAML
范良俊 1彭振皖 1王晨 2于泓涛 2梁振1
作者信息
- 1. 安徽医科大学生物医学工程学院,安徽 合肥 230012
- 2. 爱特美德(安徽)智能科技有限公司,安徽 合肥 230032
- 折叠
摘要
为解决初学者使用Swift语言编写iOS程序上手难,公司开发多平台应用程序成本高等问题,本文基于跨平台开发理念实现一种通过编写简单易学的解释性配置文件YAML进行苹果应用开发的iOS框架.首先调研第三方语言开发苹果应用的可行性,其次在YAML语法中对UI控件、样式渲染、网络请求等进行抽象及结构定义,框架底层根据结构定义依次完成资源加载、数据处理、控件创建及用户交互等核心功能.并基于该框架设计开发一个在线问诊应用(Aitmed-Care),且成功上线Apple Store,配合Web和Android框架可以达到开发一套代码发布在多平台的目的.应用的成功发布表明框架从功能性、安全性等角度符合iOS软件的开发规范,可以被应用于iOS开发.
Abstract
To solve the problems of difficulty for beginners to write iOS programs using Swift language and the high cost of devel-oping multi platform applications for the company,this article implements an iOS framework for Apple application development based on the concept of cross platform development,which involves writing a simple and easy to learn explanatory configuration file YAML.Firstly,the feasibility of developing Apple applications using third-party languages is investigated.Secondly,UI controls,style rendering,and network requests are abstracted and structurally defined in YAML syntax.The underlying frame-work completes core functions such as resource loading,data processing,control creation,and user interaction in sequence based on the structural definition.And based on this framework,an online consultation application(Aimed Care)is designed and developed,and successfully launched on the Apple Store.Coupled with the Web and Android frameworks,the goal of devel-oping a set of code for publishing on multiple platforms can be achieved.The successful release of the application indicates that the framework meets the development standards of iOS software from the perspectives of functionality and security,and can be applied to iOS development.
关键词
iOS/Swift/框架/YAML/网络请求/跨平台开发Key words
iOS/Swift/framework/YAML/network requests/cross platform development引用本文复制引用
基金项目
安徽省自然科学基金资助项目(2108085QF274)
安徽医科大学博士科研基金资助项目(XJ201901)
出版年
2024