Font Size: a A A

Component-based Refactoring Of IOS Application For International Trade Mall

Posted on:2019-03-30Degree:MasterType:Thesis
Country:ChinaCandidate:X WangFull Text:PDF
GTID:2348330545462583Subject:Electronics and Communications Engineering
Abstract/Summary:PDF Full Text Request
With the development of mobile Internet,the structure of mobile client becomes more and more complex.The traditional MVC design pattern can not meet the needs of multi-person collaborative development.It will produce a large number of couplings,resulting in inter-module testing difficulties,frequent conflicts in iteration,Development inefficient.Therefore,the development of mobile phone client component problem has gradually become a more difficult issue.Componentization is a design framework that builds a system by splicing functional components.By solving the problem of coupling between components and improving the reusability of the components,the system is easier to maintain and expand.This paper designs and implements a component-based development framework based on the iOS platform.The framework provides the page-hopping logic between components in the way of Router,which has some dynamic features and hot fixes.Framework provides Objective-C Protocol function calls between components to solve the problem of coupling between components,and to some extent,improve the reusability of components.The decoupled components are introduced into the main project as a private Pod library and components are integrated more efficiently,making subsequent project development and maintenance much easier.This article first analyzes the drawbacks of the traditional MVC development framework in the multi-person development model,puts forward the design scheme of the component development framework and the core issues to be solved.Then,it explores the existing component solutions at home and abroad,and analyzes the advantages and disadvantages of each solution from the technical realization level.Finally,according to the specific business characteristics of China Mobile Mall client,the most suitable technical solution is selected and the realization of the component framework and the client reconfiguration are completed.The reconfigured client realizes on-demand loading,reducing the system load,memory usage Also more stable.
Keywords/Search Tags:Component-based, Mobile Client, Coupling, Refactoring, Design Pattern, iOS Platform
PDF Full Text Request
Related items