ReactNative[IOS] can't hide keyboard by clicking blank position

Recently, in the requirements of the development project, the test students raised a bug. In the following page, there are three input boxes. On iOS phones, after input, the keyboard cannot be hidden; on Android phones, the keyboard has a stow button, so there is no such problem. Solutions in mind:1. Let the input box lose focus,2. Click the bl ...

Posted by evanesq on Sat, 07 Dec 2019 06:56:36 -0800

What exactly is AFNetworking like

AFNetworking is a well-known tripartite library for the iOS world and has completely replaced ASI.The latest AFNetworking3.0 has also been switched from NSURLConnection to NSURLSession for ease of use.As an experienced iOSer who is constantly exploring, you should also look at the internal merits of source enhancement. 1. Overview First, look ...

Posted by Najjar on Thu, 05 Dec 2019 18:46:01 -0800

Design mode Observer mode Observer

Observer mode, also known as publish / subscribe mode, defines 1-to-many one-way dependency between objects, so that when the target object changes, the observer object can receive messages and process them immediately. One, four elements 1. Target object interface 2. Target object 3. Observer interface 4. Observer object II. Core ...

Posted by jswinkelman on Thu, 05 Dec 2019 06:52:55 -0800

iOS Development -- MQTT real-time data processing

I. MQTT MQTT protocol is used in an Internet of things project, which can be used to communicate between devices and software MQTT: instant messaging protocol, transport layer protocol Two. Commonly used: 1. Mqttkit (no longer maintained) 2.MQTTClient a. set address port, account password and other basic information b. subscribe to topic ...

Posted by conor.higgins on Thu, 05 Dec 2019 04:59:50 -0800

Mobile Gesture Event (Multi-finger Operation)

In mobile development, existing gesture events are only supported by browsers on IOS, so browser gesture events on other devices must be upgraded on touchstart, toucmove, touchend events on the mobile side. Below is a description of the gesture events on the mobile side upgraded. Mobile Touch Events (Basic Events) Touch start - Touch start Tou ...

Posted by Frozenlight777 on Thu, 05 Dec 2019 02:34:43 -0800

Realization of waterfall flow with native js and Realization of waterfall flow with left and right columns in wechat applet

It is not practical to use css to realize waterfall flow, because the waterfall flow realized in Chaoshan city is arranged in columns. Here, we record the realization of waterfall flow with js and the realization of waterfall flow with left and right columns in wechat applet 1. effect picture 2. Native js realizes waterfall flow html file < ...

Posted by grandman on Mon, 02 Dec 2019 18:22:07 -0800

scrollView to browse and zoom

I. application scenarios Similar to wechat sending friends circle to add pictures (photo album or photo taking), click the picture to browse, when browsing, you can zoom the current picture, and the zoom does not affect the normal display of other pictures; when browsing, you can delete pictures II. Key codes //The main problem here is: if y ...

Posted by jonker on Mon, 02 Dec 2019 03:46:34 -0800

Asynchronous and file I/O

With this overhead, you can start to actually write the application. The XAML file for TextFileAsyncPage is the same as TextFileTryoutPage, but the code behind file must be set to use the asynchronous file I / O method. Any exceptions that may occur in file I / O functions must be caught here, which means that any method that can throw an excep ...

Posted by nyi8083 on Sun, 01 Dec 2019 14:27:48 -0800

Enterprise app ipa package deployed to its own server

Preface:Recently, it has started to march into the pit of uni app mixed development, which has been mined countless, and its strength can be improved a little every time it crosses a pit. Now you need to deploy the enterprise app ipa package to your own server to download. All ipa packages deploy their own servers and finally have the following ...

Posted by iandotcom on Sun, 01 Dec 2019 13:11:54 -0800

Notes on the agent of iOS UITextField

Today, when I was working on a project, there was a need to click the button to input the text in a specific edit box. At the beginning, I also wrote in the idea of C + +. First, I got the position of the cursor, and then I was judging whether it was in that edit box for input. Later, my colleague next to me saw that I was directly taught to us ...

Posted by n00854180t on Sun, 01 Dec 2019 12:57:04 -0800