af3.0 Learning Use and Understanding

Understanding the use of af3.0 af3.0 no longer uses "AFHTTP Request Operation" and only uses NSURLSession, so let's start with how to use NSURLSession to initiate requests What network requests to start under config NSURLSession uses config to establish connections What type of request data is NSURLSession Task, up, down Session &am ...

Added by SecureMind on Wed, 03 Jul 2019 01:16:27 +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

Implementing KVO with Block

In iOS development, we can monitor the change of an object's attributes through KVO mechanism. Students who have used KVO should know that KVO callbacks are implemented in the form of proxy: after adding observations to an object, callback proxy methods need to be implemented in another place. This design feels scattered, so suddenly I want t ...

Added by moriman on Mon, 01 Jul 2019 03:00:13 +0300

The perfect solution for WKWebView to interact with js

_As H5 becomes more powerful, guys who haven't done mixed development are shy about saying they can do it on their own iOS app development for iOS7 operating system Below, the common native, JS interaction frameworks are easy-js, WebView JavascriptBridge, and a framework that combines javaScriptCore.Easy-js is an early framework that has not be ...

Added by slug58 on Mon, 01 Jul 2019 00:41:10 +0300

H5 Development: Summary of UI Problems

Meta Basic Knowledge: H5 page window automatically adjusts to device width and prohibits users from scaling pages // I. HTML Page Structure <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> // Width sets the viewport width to a positive integer ...

Added by VK4KBG on Sun, 30 Jun 2019 04:09:41 +0300

Common design patterns in android

Singleton mode Ensure that a class has only one instance and that it instantiates itself and provides this instance to the entire system. public class Singleton { private static volatile Singleton instance = null; private Singleton(){ } public static Singleton getInstance() { if (instance == null) { syn ...

Added by dirkadirka on Sat, 29 Jun 2019 19:49:31 +0300

10 front-end knowledge points per day: acrobatics

Personal blog is online. Welcome to visit and comment!No Reason - wangchloe's Personal Blog If you have any questions, please let me know immediately to amend the following contents, so as not to mislead more people. toString() && valueOf() JSON stringify & parse +new Date() Analysis of Array.prototype.slice.call(arguments, 0) J ...

Added by twatkins on Fri, 28 Jun 2019 23:46:11 +0300

iOS Clear Cache Packaging

/* Document folder: ITunes automatically backs up the directory for persistent data that should be generated by the program's runtime. (Apple recommends that programs created and browsed in the program be stored here, and iTunes automatically includes the directory when backing up and replying.) Acquisition methods: // The file path is an a ...

Added by rhasce on Fri, 28 Jun 2019 23:16:23 +0300

SnapKit Use Details

SnapKit functions as SDAutoLayout and Masonry (the predecessors) to achieve automatic layout of controls by constraints; it is more convenient to maintain than StoryBoard because of its code implementation. I think the automatic layout of iOS is very similar to the Relative Layout in Android, which determines the final size and location through ...

Added by sheen.andola on Thu, 27 Jun 2019 01:47:13 +0300

H5 mobile adapter IphoneX and other models

Let's see what the iPhone X looks like first In the image above, the Iphonex model has two new areas on the head and bottom, so we need to make some adjustments to this type of model to make our webapp display easier.h5 mobile end page, the common layout is head + trunk + bottom three columns mode, the head and top are fixed positioning, the c ...

Added by 99degrees on Mon, 24 Jun 2019 19:05:58 +0300