Configure Privacy Protocol - iOS
According to the new rules of Apple Privacy Protocol, all applications are required to include privacy protection protocols, so the following privacy protocol modules are added to App.
When App is installed for the first time, the Privacy Protocol module is called by default to display the relevant information once. When the u ...
Posted by norpel on Fri, 01 Feb 2019 22:36:16 -0800
Several Ways to Realize View Sliding
Method of realizing view sliding:
I. layout Method
When the View is drawn, the system calls layout (int, int, int r, int b) method to determine the specific location of the View. Since this is the case, we can also control the position of the View by calling layout(int l, int t, int r, int b) `method to modify the four attrib ...
Posted by poppy28 on Fri, 01 Feb 2019 19:48:15 -0800
FFmpeg Mac Compiler Downloaded in Installation
Articles Catalogue
Compile ffmpeg
Recording issues
Android cross-compilation
Download ndk
mac.sh script
Compile ffmpeg
Here we use the mac system, which will be supplemented later by other systems.
download
git clone https://git.ffmpeg.org/ffmpeg.git
Help
cd ffmpeg
./configure --help | more
cd ffmpeg
Installation ...
Posted by poe on Fri, 01 Feb 2019 19:15:15 -0800
[Swift 4] (5) Function basically uses | variable parameter | inout reference transfer | function type return value | function nesting
Fundamental use of functions
Keyword: func
func hello(name:String) ->String
{
let result = "Hello,"+name
return result
}
hello(name: "imagine")
Lectotype:
func hello(name:String?,greet:String) ->String
{
let result = greet+","+(name)!
return result
}
var nickname:String? //nil
nickname = "imagine"
h ...
Posted by Trojan on Fri, 01 Feb 2019 12:12:15 -0800
AVFounction Learning Notes--Media Capture
AVFounction Learning Notes - Media Capture
Basic knowledge
First, we introduce AVFounction capture related classes. As shown in the following figure
1. AVCaptureSession captures session core classes
2. AVCaptureDevice capture device, the most commonly used are audio and video
3. Preview Layer of AV CaptureVideo Preview Layer ...
Posted by RedMaster on Fri, 01 Feb 2019 11:27:16 -0800
[OC] Create a new class in parentheses
[OC] Create a new class in parentheses
Special description
The following code is only for illustration purposes, naming is not a special specification, children do not imitate oh.
Preface
In iOS development, we often use such a piece of code:
UIView *myView = [UIView new];
myView.backgroundColor = [UIColor blackColor];
myV ...
Posted by foochuck on Fri, 01 Feb 2019 11:18:15 -0800
Android JNI Development Series (11) JNI Access Parent Class Construction Method and Parent Class Instance Method
JNI Access Parent Class Construction Method and Parent Class Instance Method
Constructing Method and Parent Class Instance Method
Let's start with a piece of Java code.
Java package org.professor.jni.animal;
import android.util.Log;
public class Animal {
protected String name;
public Animal(String name) { this.name = name; }
public St ...
Posted by fallenangel1983 on Fri, 01 Feb 2019 10:15:15 -0800
android Custom Circle Picture
Main categories:
package de.hdodenhof.circleimageview;
import edu.njupt.zhb.main.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import and ...
Posted by cobalt30 on Fri, 01 Feb 2019 09:57:16 -0800
ViewPager+RecycleView for Android Project Implementation of Home Paging Navigation Menu
Design sketch
Children's shoes that have used beauty troupes and hungry app s should be aware of this function. Home menu can be paginated switching, similar to our banner advertising switching effect, but can only be manually switched. So the whole paging effect can be achieved by Viewpager, and the menu items in it can be re ...
Posted by Bijan on Fri, 01 Feb 2019 09:54:15 -0800
android HttpURLConnection
After android 6.0 (api 23) sdk, HttpClient is no longer available, so the native network request for android is HttpURLConnection.
introduce
Comparison between HttpClient and HttpURLConnection
1. HttpClient is an open source framework of apache. It encapsulates the request header, parameters, content body and response waitin ...
Posted by EATON106 on Fri, 01 Feb 2019 03:51:16 -0800