Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for simplifying codes

A code and source code technology, applied in the computer field, can solve problems such as function expansion and maintenance and application difficulties, and achieve the effect of facilitating maintenance and simplifying the code

Inactive Publication Date: 2017-05-10
WUHAN DOUYU NETWORK TECH CO LTD
View PDF4 Cites 4 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
  • Method and device for simplifying codes
  • Method and device for simplifying codes
  • Method and device for simplifying codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

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

[0036] In the technical solution of the embodiment of the present invention, an interface controller class, a target function class and a target function proxy class are first created, wherein the target function class is used to realize the target function of the target application, and then the interface controller class is created in the A target proxy object of the target proxy class, and controlling the target proxy class to proxy the target function class. Compared with creating each target proxy object and proxy method in the interface controller class in the prior art, since the embodiment of the present invention uses the target proxy class to proxy the target function class, and simultaneously creates ...

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 embodiment of the invention provides a method and a device for simplifying codes, and is used for simplifying the codes in UIViewController. The method comprises the following steps: establishing an interface controller class, a target function class and a target function agency class, wherein the target function class is used for realizing target function of a target application; establishing the target agency object of the target agency class in the interface controller class; and controlling the target agency class to agent the target function class, so that a method for the target function class can be monitored through the target agency object and then the target function class can be monitored by the interface controller class.

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 and agent protocols corresponding to the functions of the above-mentioned live broadcast page are accommodated in the interface controller UIViewController. Therefore, making UIVie...

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/38
Inventor 汪刚
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products