Automatic filling of verification code with style of applet

I. business scenario: for example, if the verification code is obtained on ios mobile phone, it will be displayed on the keyboard, and then clicked, it will be automatically filled in the input box; at this time, the input box is a good one, and it will be automatically filled in, but now it is required that the 6 digits of the verification cod ...

Posted by Benny Johnson on Tue, 17 Dec 2019 19:25:41 +0100

Text offset of MLEmojiLabel and TTTAttributedLabel

When making a view of floating layer rolling chat, MLEmojiLabel and TTTAttributedLabel are used as three-party open-source files. The problems encountered are: 1. According to the demo of MLEmojiLabel, add emojiLabel to the content view of tableView, and find that emojiLabel will always be about 5pt lower. 2. With the increase ...

Posted by doodmon on Fri, 13 Dec 2019 19:25:01 +0100

iOS upload multiple files

Upload file format POST /php/upload/upload.php HTTP/1.1 Host: 127.0.0.1 Content type: multipart / form data; boundary = identity (customizable) Request body --Identity (customizable, but must be consistent with the request header) Content-Disposition: form-data; name="userfile[]"; filename="head1.png" Content-Type: image/png Bla ...

Posted by defeated on Wed, 11 Dec 2019 16:26:29 +0100

Black and White, 2017 ACM Hong Kong regional competition

Title: There is a chessboard with an initial color of all white n*n. each time you select a rectangular area to reverse the color, ask how many black squares there will be at the end. N, k<=10000 Analysis: It's the same as scanning line. Record each transverse edge and project it to the x-axis. It's just that there's no d ...

Posted by bufke on Tue, 10 Dec 2019 21:32:59 +0100

TabBar of iOS development click again to refresh

demand The user-defined TabBar has been implemented before, as shown in the figure: Customize TabBar.jpeg Now you need to implement a function similar to today's headline TabBar - if you continue to click the selected item of the current TabBar, the UI table view needs to be refreshed. Analysis Now that TabBar has been custom ...

Posted by Tjeuten on Sun, 08 Dec 2019 06:32:46 +0100

Copying clipboard s on the mobile side and processing for iOS

If there is such a demand: click a button, copy the text of a certain text to the clipboard for use, we need to use some methods.On the pc, we can copy text using document.execCommand('copy'); But not on the mobile side. The project I chose is clipboard, and the actual measurement effect is perfect. On the official website of clipboard https:/ ...

Posted by berrberr on Mon, 02 Dec 2019 17:09:10 +0100

Solutions to download APP directly in wechat (including apk and ios)

More and more promoters and operators choose to use wechat for promotion, or to obtain more customer resources through wechat, APP promotion is no exception. Due to the saturation of the app market, there are strict auditing standards in the app market, and there is a lot of human and material resources wasted. As wechat now downloads, the tra ...

Posted by lorri on Sun, 01 Dec 2019 22:24:00 +0100

Advanced skills of iOS core animation-4

8. Explicit animation Explicit animation If you want things to go smoothly, you have to rely on yourself The previous chapter introduced the concept of implicit animation. Implicit animation is a direct way to create dynamic user interface on iOS platform, and it is also the basis of UIKit animation mechanism, but it can not cover all types ...

Posted by n000bie on Tue, 26 Nov 2019 07:40:09 +0100

UICollectionView set the first cell to be selected by default

In the previous article, the default cell selected for UICollectionView is that each cell has a corresponding identity, which means that the reuse mechanism of UICollectionView is abolished. For less data, it is OK, but for larger data, it will cause performance problems. So I think that under the reuse mechanism of UICollectionView, the gener ...

Posted by adzie on Sun, 24 Nov 2019 16:48:32 +0100

How to read the uni app framework efficiently? (recommended Collection)

By Jeskson Source: front end tavern of dada The framework of uni app, configuration: page.json, manifest.json, package.json, vue.config.js. Script, application, main.js. Log printing, timer, life cycle, page, page communication. pages.json file is used for global configuration of uni app. It is used to write path, window style, tabbar at the ...

Posted by rharter on Fri, 22 Nov 2019 20:05:53 +0100