Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Rich text editor implementation method for using UITableView on IOS platform

An implementation method and editor technology, applied in the direction of instrument, user interface execution, calculation, etc., can solve problems such as poor hand-in-hand, not good performance, can not meet the needs well, and achieve the effect of excellent performance

Pending Publication Date: 2022-05-27
宝宝巴士股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Due to some business needs of computer companies in the market, rich text editor functions are required on the IOS side. At present, there are the following types of rich text solutions in the industry, and none of them can meet the needs well:
[0003] One is to combine UITextView with NSAttributeString to realize graphic and text mixed editing. For example, the implementation of SimpleWord uses this method, but the disadvantage is that pictures cannot be interacted with, such as adding a progress bar to the picture, adding a prompt for upload failure and picture click event processing, etc. can't wait
[0004] The other is to use WebView through js and native interaction, such as WordPress-Editor and RichTextDemo, the main problem is that the performance is not good enough, and you need to know the front-end knowledge to get started
[0005] Another way is to use CoreText or TextKit, but the position of inserting and editing the picture is fixed, and the text is around the picture, so this does not meet some business requirements. If you want to use this solution, then you need to meet some requirements When business needs arise, there are many places to modify, and the use of CoreText / TextKit has a certain threshold, and the ease of use is poor

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
  • Rich text editor implementation method for using UITableView on IOS platform
  • Rich text editor implementation method for using UITableView on IOS platform
  • Rich text editor implementation method for using UITableView on IOS platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] Please refer to Figure 1 to Figure 7 As shown, an IOS platform uses UITableView's rich text editor implementation method, including:

[0026] S1, such as figure 2 As shown, a text input control UITextView is nested in each item of UITableViewCell of the list control UITableView, and the text input control UITextView carries the paragraph to be edited;

[0027] S2, configure the proxy of the text input control UITextView and the list control UITableView, the proxy is used to inform the list control UITableView of the paragraph type and paragraph height of the paragraph where the text input control UITextView is located, and the paragraph type includes text paragraphs and picture paragraphs, the text paragraphs and picture paragraphs both include multiple nodes;

[0028] S3, configure the processing logic algorithm of the paragraph in the list control UITableView;

[0029] S4. After acquiring the position of the cursor and the execution action information, determine ...

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 a method for realizing a rich text editor by using UITableView on an IOS (Internet Operating System) platform, which is characterized in that a text input control UITextView is nested in each item of UITableViewCell of a list control UITableView, and the effect of the rich text editor with image-text mixed arrangement is realized through combined simulation. Moreover, through a self-defined processing logic algorithm, high-performance native experience can be achieved, various customization requirements are met, and it is guaranteed that the rich text editor is excellent in performance. When it is judged that the action process type is one of the forward deletion process, the non-forward deletion process, the forward insertion process and the non-forward insertion process through the obtained position of the cursor and the execution action information, different processing logic algorithms can be executed based on different conditions, and then the method can adapt to various operation scenes and is high in applicability. The operation logic of the rich text editor is executed through the self-defined process algorithm, the user can carry out adaptive improvement and function addition according to requirements, and the flexibility is high.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a method for implementing a rich text editor using UITableView on an IOS platform. Background technique [0002] Due to some business needs of computer companies on the market, the IOS side needs a rich text editor function. At present, the industry uses rich text solutions in the following categories, none of which can meet the needs very well: [0003] One is UITextView combined with NSAttributeString to realize mixed editing of graphics and text. For example, the implementation of SimpleWord uses this method, but the disadvantage is that pictures cannot be interacted, such as adding a progress bar to pictures, adding upload failure prompts and picture click event processing, etc. Can't wait. [0004] The other is to use WebView through js and native interaction, such as WordPress-Editor and RichTextDemo. The main problem is that the performance is not good enough, and you nee...

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/451G06F40/166
CPCG06F9/451G06F40/166
Inventor 张玉棠唐光宇卢学明闫乃永
Owner 宝宝巴士股份有限公司
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
Eureka Blog
Learn More
PatSnap group products