Preface Recently I’ve been working on SDK development. Sometimes you can’t easily remove an API because some people are still using it. So to keep the relevant method while marking it as deprecat...
Effect Today my friend (Wang Kecheng) discovered that Xcode has a very convenient feature — you can debug and run on a real device wirelessly. Take a look at this image. Configuration Step 1: ...
Preface This chapter covers AVAsset metadata (which can be simply understood as the model information of an audio format such as mp3: title: xxxx, artist: Andy Lau, album: Love You for Ten Thousa...
Preface I’ve been studying OpenGL recently and got battered by all kinds of unfamiliar terminology, so I’m recording some learning points for reference and study. What is GLSL? GLSL (OpenGL Sha...
#import "BDRowView.h" #define k_NORMAL_COLOR [NSColor colorFromInt:0xfcfdfe] #define k_SELECTED_COLOR [NSColor colorFromInt:0xeff1f3] @interface BDRowView () @property(strong) NSTrackingArea *tr...
Preface Developers familiar with WIN development must be very familiar with shortcuts; on macOS they are called aliases. Recently I was developing some plugin-related logic and found that I need...
Preface No matter when you graduate or when you start working, this article of mine will be the chapter I recommend to you before you step onto campus or while you’re in college. If you study ...
Preface Having seen countless times how people always create files using a timestamp + arc4random(), I felt deeply frustrated. Doesn’t the operating system provide a relevant function? So I foun...
Preface A collection of shortcuts I’ve accumulated as an iOS and macOS developer. Toggle the Left Panel command+0=Show/Hide the left panel Toggle the Right Panel command+option...
Before you access the camera, contacts, and other privacy-sensitive data, you must request authorization. Otherwise, your app will crash when you try to access that private data. Xcode will log som...