cocos2d loads plist files (frame animation)

Integrate the pictures into one large picture, reduce the picture occupancy, there are plist files and png supporting files. cocos loads plist files in two ways (queried) 1. If you load in the following way, your plist file must contain an animations node, otherwise the load will fail auto cache = AnimationCache::get ...

Added by zahidraf on Tue, 30 Jun 2020 19:21:37 +0300

MOJITO released one week, climbing a wave of barrage analysis

MOJITO I haven't written anything recently. I can't catch up with a hot spot. I despise myself. Zhou Dong's new song "MOJITO" (zero on June 12) has been on sale for about a week now. When I look at the MV of station B, I can see that the broadcast volume is over ten million, and the barrage is over one hundred thousand. This popu ...

Added by mo on Sun, 21 Jun 2020 10:23:10 +0300

Markdown Editor.md simple integration

Since we want to integrate, the first step is to find the source and download it directly to the official website. Official website address: https://pandao.github.io/editor.md/ Extract the download file after downloading If the dependency used is basically marked with a red box, drop the required dependency into the resources directory of your ...

Added by BoltZ on Fri, 01 Nov 2019 23:52:06 +0200

How "React Hooks" uses 120 lines of code to implement an interactive drag-and-drop upload component

Preface In this article, you will learn: How to rewrite existing components to React Hooks function components How does useState, useEffect, useRef replace the original life cycle and Ref? Four events covered by a complete drag-and-drop upload be ...

Added by drak on Tue, 03 Sep 2019 13:20:30 +0300

Python analyzed the Weixin nicknames after 00-90, and found the following rules!

Hello, everyone, first of all, this is a technical article, but also a not technical article. Today, I share the following results after I got more than 3,500 micro-credit household nicknames and age groups named in English by Weixin applet. Let's get it 1. Basic information acquisition 1. Visit the ...

Added by porta325 on Wed, 07 Aug 2019 16:22:20 +0300

iOS uses UIMenuController without hiding keyboard

iOS uses UIMenuController without hiding keyboard Use UIMenuController pop-up menu when keyboard display, keep keyboard display and input state. The implementation methods are as follows: Modify the response chain (recommendation) Follow the UIKeyInput protocol Customize Menu controller The code for the first two methods has been uploaded to ...

Added by matthiasone on Wed, 03 Jul 2019 00:17:44 +0300

One of the easiest ways to restrict input for Android

Today brings a small Amway in the work, product requirements for user name input need to be limited, can only be digital and alphabetic, symbols, can not contain spaces and keyboard input emoji. Start to get this demand, I think to add an addTextChangedListener to EditText, which makes a variety of judgments on OK! Haha, and can play happily. ...

Added by horizontal on Tue, 14 May 2019 16:39:19 +0300