Code simplifying method and device

A code and source code technology, applied in the computer field, can solve problems such as function expansion and maintenance application difficulties, and achieve the effects of reducing the difficulty of function expansion and maintenance, simplifying codes, and simplifying technical effects

Inactive Publication Date: 2017-05-31
WUHAN DOUYU NETWORK TECH CO LTD
View PDF2 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, too much code will make it difficult to expand the function and maintain the application

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code simplifying method and device
  • Code simplifying method and device
  • Code simplifying method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] Embodiments of the present invention provide a code simplification method and device for simplifying code in UIViewController.

[0034] In order to solve the above technical problems, the general idea of ​​the technical solution provided by the present invention is as follows:

[0035]In the technical solution of the embodiment of the present invention, one or more UIViewController classifications of the interface controller UIViewController class are first created, and then the method collection in the UIViewController class is imported into the UIViewController classification, wherein the UIViewController class includes One or more sets of methods, each set of methods is used to realize one or more target functions of the target application, one set of methods imports one category of UIViewController, and the establishment of the UIViewController class calls one or more The calling relationship of multiple UIViewController categories, so that the UIViewController clas...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of computers, in particular to a code simplifying method and device. The method and device are used for simplifying codes in a UIViewController. The method includes the steps that one or more creation interface controller classifications of a creation interface controller class are generated; method sets in the creation interface controller class are input into the creation interface controller classifications, wherein the creation interface controller class includes one or more method sets, each method set is used for achieving one or more target functions of a target application, and one method set is input into the corresponding creation interface controller classification; a calling relation for the creation interface controller class to call one or more creation interface controller classifications is built so that the creation interface controller class can call the method sets in one or more creation interface controller classifications to achieve one or more corresponding target functions.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for simplifying codes. Background technique [0002] With the widespread use of smart devices, the functions of applications are becoming more and more abundant. Taking the live broadcast application as an example, when users use the live broadcast application, most of the time they stay on the live broadcast page to watch the live video. The live broadcast page needs to provide users with a large number of functions, such as sending barrage, chatting, sending virtual gifts, receiving virtual gifts, recharging, blocking users, reporting users, watching live broadcasts, adjusting brightness, adjusting sound, and rotating the screen direction, etc. In the prior art, various agents, agent protocols and methods corresponding to the functions of the above-mentioned live broadcast page are accommodated in the interface controller UIViewController. Therefore, mak...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F8/72G06F8/24
Inventor 汪刚
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products