Method and device for loading gif animation in ios
An animation and lazy loading technology, applied in the input/output process of data processing, instruments, other database retrieval and other directions, can solve problems such as system crash and memory explosion, and achieve the effect of avoiding system crash
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] The process of loading GIF animation is as follows:
[0051] S101. Create a web interface UIWebView by using lazy loading, and the name of the web interface is webView;
[0052]S102. Use the function [[UITapGestureRecognizer alloc]initWithTarget:selfaction:@selector(webViewTap:)], the [UITapGestureRecognizer alloc] on the right side of the function executes: create a gesture in memory, and the initWithTarget function executes: add The object of the message callback. The self in this statement represents which controller the added callback is executed on. @selector(webViewTap:) is the function webViewTap method selector, which is the process of executing a callback function. After the above function is executed, there will be an object UITapGestureRecognizer*gesture, the type of this object is UITapGestureRecognizer*, which is a gesture object. The above process completes adding gestures to the webpage interface webView, and at the same time use the function statement [w...
Embodiment 2
[0057] On the basis of embodiment 1, the process of pausing the GIF animation is as follows:
[0058] S201. Click the webpage interface webView to trigger a gesture operation and capture an image;
[0059] Call -(void)webViewTap:(UITapGestureRecognizer*)recognizer function, this function has no return value, the return value is void, this function has a parameter recognizer, the type of this parameter is UITapGestureRecognizer, recognizer represents a gesture, this gesture contains and Gesture-related information, this function calls the stopPalyGIF function, the writing process of the stopPalyGIF function is:
[0060] S201a, use Apple's own .size function CGSize webSize=self.webView.size to obtain the size of the screenshot, the size of this screenshot is webSize, wherein self.webView refers to the web interface webView for loading GIF animation, .size syntax It is a dot syntax, and its function meaning is to get the size of the webview of this web page interface, size is th...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com