Realization of Music Lock Screen and Backstage Playing
Preface
After playing music by oneself, one can operate the lock screen and play back-stage, mainly using AVAudioSession class. This class is a singleton class that sets some context of APP about Audio and passes some of its behavior to the system.
An audio session is a singleton object that you employ to set the audio context for your ap ...
Posted by ksp on Sat, 01 Jun 2019 14:21:26 -0700
Ionic Foundation - Listion-list
List: ion-list
Listing is a common way of organizing information. In ionic, list elements are declared using ion-list instructions, and member elements are declared using ion-item instructions:
<ion-list>
<ion-item>...</ion-item>
<ion-item>...</ion-item>
...
</io ...
Posted by phpeanuts on Fri, 31 May 2019 17:56:23 -0700
Attention Problems in Reading and Writing Files of fstream
Classes ofstream, ifstream and fstream are three classes of file operations, derived from ostream, istream and iostream, respectively. Usually ifstream and OFSTREAM are used to read and write files respectively.
1. Open the file
void open (const char * filename, openmode mode);
filename is a string representing the name of the file to b ...
Posted by madkris on Fri, 31 May 2019 15:58:06 -0700
Luogu P3377 [Template] Left-sided Tree (Parallel Heap)
2019-06-01
Topic: Luogu P3377 [Template] Left-sided Tree (Parallel Heap): https://www.luogu.org/problemnew/show/P3377
Title Description
For example, there are N small root heaps at the beginning. Each heap contains only one number. Next, two operations need to be supported:
Operation 1:1 x y merges the small root heap where the number x ...
Posted by dr.wong on Fri, 31 May 2019 11:00:13 -0700
Dig a Bessel Curve and those things
Dig a Bessel Curve and those things
I. Past and present life
Bessel Curve was originally designed to serve industrial design, especially for applications and automotive curve design. With the wide application of computer drawing, it is not easy to draw smooth and accurate curves on the computer. Bessel curve solves such a problem. Bessel das ...
Posted by NogDog on Fri, 31 May 2019 10:51:12 -0700
iOS shooting video, custom shooting interface, HD compression, watermarking
Overview of TakeVideo
The iOS system itself has a UI Image Picker Controller for taking photos and videos, but now major applications like to customize the interface for taking videos, and you must be heartened. Take Wechat for example, the mini-video is 9 seconds long and takes up 1.5 MB. So we want to do the same effect. What should we do? ...
Posted by mike1313 on Wed, 29 May 2019 13:34:56 -0700
iOS Learning Notes - 128. SDWebImage 4 - Simple analysis of internal calls within the framework
Simple Analysis of Internal Calls in SDWebImage 4 Framework
UML Diagram and Call Sequence Diagram
Second, we started by setting up a network picture for UIImageView.
3sd_setImageWithURL
Four downloadImageWithURL
Five downloadImageWithURL
Six init WithRequest
SDWebImage 4 - Simple analysis of internal calls within the framework
The ...
Posted by sprinkles on Sun, 26 May 2019 13:13:30 -0700
c++ Things 7.0 I/O Stream, File Operations
Summary of knowledge points:
C++ I/O:
Definition in iostream header file
istream // Universal Input Stream and other Input Stream Base Classes.
ostream // Universal Output Stream and other stream-based classes.
iostream//Universal I/O Stream and other I/O Stream Base Classes.
Definition in fstream header ...
Posted by alexscan on Sat, 25 May 2019 15:26:37 -0700
ios audio recording, uploading to 7Niu, playback and compatibility with android
iOS recording uses AVAudio Recorder, playing with AVPlayer can be a good solution, there are many online tutorials. I won't go into details here, but I'll attach the code later.
First of all, demo content, now the project requires a recording, uploading, playback function. Details: Before recording, prompt tone is needed. When recording, there ...
Posted by pozer69 on Sat, 25 May 2019 14:29:40 -0700
Use of iOS CAShapeLayer and UIBezierPath
1. Introduction to CAShape Layer
CAShapeLayer is a subclass of layers drawn by vector graphics rather than bitmap.
CAShapeLayer inherits from CALayer and can use all attribute values of CALayer.
CAShapeLayer needs to be used in conjunction with the Bessel curve to make sense (this is personal experience).
Using CAShapeLayer and Bessel curve ...
Posted by lalov1 on Sat, 25 May 2019 13:06:36 -0700