How to accurately measure iOS App startup time

Both WWDC 2016 and 2017 mentioned the principle and performance optimization idea of startup. It can be seen how important startup time is for developers and users. This article talks about how to accurately measure the startup time of App. Startup time consists of two parts: the startup time before main and the startup time after main. T ...

Posted by pothole_89 on Wed, 22 May 2019 11:41:17 -0700

Introduction and Application of Runtime VI - Practice

What exactly does runtime do in real development?How can we use tools like Niu X? To use runtime, first add a header file before writing the runtime code: #import <objc/objc-runtime.h> //simulator perhaps #import <objc/runtime.h> //real machine #import <objc/message.h> //real machine 1 2 3 4 1. Add a class dynam ...

Posted by Eiolon on Tue, 21 May 2019 09:44:29 -0700

Integration of UINavigation Controller and UITabBarController Mainstream App Framework

UINavigation Controller and UITabBarController Integrate Demo (Pure Code Mode) The code has been placed Github Effect Preview GIF Effect preview Basic introduction UI Navigation Controller: The typical feature of the interface is that there is a UI Navigation Bar navigation bar at the top of the page. The navigation bar can set the title, ...

Posted by CoderDan on Sun, 19 May 2019 05:57:32 -0700

iOS Extension - Objective-C Development Programming Specification

This article is mainly reproduced from: Objective-C-Coding-Guidelines-In-Chinese Objective-C coding specification, content from Apple, Google document translation, your coding experience and summary of other information. Summary Objective-C is an object-oriented dynamic programming language that is mainly used to write iOS and Mac applications. ...

Posted by Savahn on Fri, 17 May 2019 07:45:09 -0700

Accelerometer Simple Use - Labyrinth Game

Today, by writing a simple maze game, we show you how to use the built-in accelerometer of the iPhone. The effect of the game is shown in the following figure. Users control the orange pacman moving by shaking the screen up and down, pacman will bounce back when it hits the edge of the screen or the wall (blue border box), and ...

Posted by ajar on Thu, 16 May 2019 10:03:18 -0700

Cocoapods Create Public Libraries

Cocoapods Create Public Libraries In two cases: Create a brand new shared project Sharing existing projects Create a brand new shared project Reference resources Making a CocoaPod The following commands are recommended: pod lib create [pod name] For example, pod is named WZViews, as follows: pod lib create WZViews Afte ...

Posted by snake310 on Wed, 15 May 2019 04:17:42 -0700

macOS Manual Cleaning of Spam Files

There are three places where macOS is most likely to generate spam files: Xcode, iTunes and VMWare virtual machines. 1. Garbage generated by Xcode On the command line, cd to the ~/Library directory, enter the command: sudo du -d 1 -h Seeing that Developer occupies 59 G, cd to Developer directory continues to locate large files with the du com ...

Posted by saunders1989 on Sat, 11 May 2019 10:24:43 -0700

Auto-packaging scripts in React Native development

Auto-packaging scripts in React Native development In the daily development of RN A, we have to compile the code we write into an installation package and then generate a two-dimensional code for people who need to test to scan and download.However, for non-native developers, you may not know how to export the ipa and apk installation packages ...

Posted by mguili on Mon, 06 May 2019 12:45:39 -0700

iOS Continuous Integration Series - Automated Code Review

introduce In order to ensure code quality, code review is very important. Usually we only pay attention to the realization of interface and logic in the process of development, but do not consider the standardization of code. Code review is to strictly require our own. We use OCLint+xcpretty to review the code. Here, I will only introduce the ...

Posted by stormcloud on Mon, 15 Apr 2019 01:21:33 -0700

iOS - Summary of Common Programming Specifications

All specifications for programming languages, if not written here, are in Apple's documentation: Objective-C programming language Cocoa Basic Principles Guide Cocoa Coding Guide iOS Application Programming Guide Catalog Point grammar spacing Conditional judgement ternary operator error handling Method variable name Notes init and deallo ...

Posted by pentinat on Mon, 01 Apr 2019 07:15:32 -0700