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

Use react native tab navigator to switch pages

Switching pages is the most basic function of app. This function needs to be implemented with Navigation components. RN is developing too fast (v49). The Navigation component that came with it is abandoned. If it is only for ios, it can also be used NavigatorIOS There are some good ones in the communityhttps://github.com/react-comm ...

Posted by direland on Sat, 30 Nov 2019 11:07:31 -0800

h5 chat room case | imitation wechat chat interface | multi crowd chat

html5 imitation wechat chat room wechat room case | multi crowd chat interaction | imitation wechat chat interface The project is developed by using html5+css3+zepto+swiper+wcPop and other technologies Imitation wechat chat room , has been debugged for a long time, and has been adapted to various devices on the mobile phone, ...

Posted by samba_bal on Sat, 30 Nov 2019 03:20:14 -0800