计算机与现代化 ›› 2024, Vol. 0 ›› Issue (04): 115-120.doi: 10.3969/j.issn.1006-2475.2024.04.019

• 应用与开发 • 上一篇    下一篇

基于YAML的iOS应用开发框架

  


  1. (1.安徽医科大学生物医学工程学院,安徽 合肥 230012; 2.爱特美德(安徽)智能科技有限公司,安徽 合肥 230032)
  • 出版日期:2024-04-30 发布日期:2024-05-13
  • 作者简介: 作者简介:范良俊(1999—),男,安徽安庆人,硕士研究生,研究方向:iOS程序开发,E-mail: 13696548740@163.com; 通信作者: 彭振皖(1991—),男,安徽淮北人,副教授,博士,研究方向:智慧医疗安全,量子密码和安全多方计算,E-mail: pengzhenwan@ahmu.edu.cn; 王晨(1992—),男,吉林白山人,高级开发工程师,本科,研究方向:iOS程序开发,E-mail: 15662170857@163.com; 于泓涛(1963—),男,辽宁沈阳人,正高级工程师,硕士,研究方向:数学,计算机科学,基于密码学的区块链技术,E-mail: austin@aitmed.com; 梁振(1981—),男,安徽临泉人,副教授,博士,研究方向:智慧医学工程,E-mail: zliang@ahmu.edu.cn。
  • 基金资助:
    安徽省自然科学基金资助项目(2108085QF274); 安徽医科大学博士科研基金资助项目(XJ201901)
      

iOS Application Development Framework Based on YAML


  1. (1. School of Biomedical Engineering, Anhui Medical University, Hefei 230012, China;
    2. Aitmed (Anhui) Intelligent Technology Co., Ltd., Hefei 230032, China)
  • Online:2024-04-30 Published:2024-05-13

摘要: 摘要:为解决初学者使用Swift语言编写iOS程序上手难,公司开发多平台应用程序成本高等问题,本文基于跨平台开发理念实现一种通过编写简单易学的解释性配置文件YAML进行苹果应用开发的iOS框架。首先调研第三方语言开发苹果应用的可行性,其次在YAML语法中对UI控件、样式渲染、网络请求等进行抽象及结构定义,框架底层根据结构定义依次完成资源加载、数据处理、控件创建及用户交互等核心功能。并基于该框架设计开发一个在线问诊应用(Aitmed-Care),且成功上线Apple Store,配合Web和Android框架可以达到开发一套代码发布在多平台的目的。应用的成功发布表明框架从功能性、安全性等角度符合iOS软件的开发规范,可以被应用于iOS开发。

关键词: 关键词:iOS, Swift, 框架, YAML, 网络请求, 跨平台开发

Abstract: Abstract: To solve the problems of difficulty for beginners to write iOS programs using Swift language and the high cost of developing 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 framework 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 developing 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.

Key words: Key words: iOS, Swift, framework, YAML, network requests, cross platform development

中图分类号: