iOS Clear Cache Detailed Parsing, app File Path Operation, My Personal Understanding of Sandbox

To clear the cache, we first need to know where to clear the cache, so we first need to know something about the files in an app.  How to view the contents of app files: Open Xcode - > Toolbar Window - > Devices - > Select Devices - > Click on the project (double-click can also be seen directly, wait for 10 seconds to appear) - ...

Posted by Davy on Sat, 30 Mar 2019 21:00:29 -0700

Mixed edition of swift and OC

Why mix it up? Language development trend (TIOBE), Swift ranking continues to rise, OC ranking shows gravitational decline. Normal Iteration Requirements for Projects Many third-party libraries still use OC implementations Modules previously implemented with OC in the project will cost a little more if they are rewritten with Swift We need ...

Posted by phorman on Sat, 30 Mar 2019 15:09:30 -0700

iOS in-depth learning (Block comprehensive analysis)

This article is translated from Apple Documents There are deletions and additions. If you don't understand Block syntax, you can refer to fucking block syntax, which is for Block. For comparison purposes, I assume that the following code is written in the ViewController subclass 1. Part I Define and use Block, - (void)viewDidLoad {     [su ...

Posted by smartsley on Sat, 30 Mar 2019 08:27:28 -0700

Swiftlink Code Specification Property Description

Detailed description of SwiftLint code specification attributes Attribute 1: weak_delegate. Agents should be written as weak types (weak agents) to avoid circular references For example: /// 1.1 Compiled through class Langke { var chenlong: NSObjectProtocol? } /// 1.2 Compiler passed, but triggered the weak_delegate warning of swift ...

Posted by jawaidpk on Fri, 29 Mar 2019 09:15:30 -0700

App Automated Testing Exploration 5-Calabash Trampling Summary

For reprinting, please indicate the source: https://lizhaoxuan.github.io Preface In order to ensure the process of reading the previous chapters, we will summarize all the problems that Calabash encountered from the environment to the specific use. Most of them are pits that I actually experienced. At the same time, I will try my best to r ...

Posted by Victorm on Wed, 27 Mar 2019 13:09:31 -0700

Reprinted other people's iOS bits and pieces of knowledge

1. Call code to make APP go into the background and click the Home key. (Private API)    [[UIApplication sharedApplication] performSelector:@selector(suspend)]; Suspend means: suspend; suspend; suspend; delay; Second, URL processing with Chinese. For example, like the following URL, which directly contains Chinese, may not play, t ...

Posted by batfink on Fri, 22 Mar 2019 17:45:52 -0700

iOS development message sent to deallocated instance problem solving

problem Look directly at the screenshots. Solution 1. Active Monitor Views APP Process Number PID 2. Viewing problems in terminal Use the command malloc_history PID address |grep address PID is replaced by process number, address is replaced by error address (xcode error address) 3. Look directly at the last line to locate t ...

Posted by abhikerl on Sun, 10 Feb 2019 22:42:17 -0800

How to switch xcode on Mac?

How to switch xcode on Mac? Because of the need of learning, I installed two versions of Xcode on MAC, one is Xcode 7.3, the other is Xcode 8.3. But in some cases I need to switch the version of xcode, so I find out the following experience. 1. View the current version of xcode /usr/bin/cc --version Here I am: jhmdeiMac:~ jhm$ /usr/bi ...

Posted by warydig on Sun, 10 Feb 2019 14:00:18 -0800

Pure C version LZMA compression algorithm library for Unity (windows iOS Android) (dll. so and. a)

Self-encapsulated LZMA interface library for unity, including dll of win platform, so dynamic library of Android and. a static library of iOS LZMA is currently the highest compression ratio compression algorithm. Official versions of LZMA are available in many languages. unity can use C# directly, but it has been proved ...

Posted by Cannibal_Monkey on Tue, 05 Feb 2019 00:54:17 -0800

# iOS Runtime from Initial Knowledge to Practice

xcode.png ** This article is suitable for readers who have not uncovered the mysterious veil of runtime. When God sees the words here, he also hopes to throw some ink at his younger brother and increase his knowledge! ** Introduction to Runtime: It is a runtime library, basically written in C and assembly. Some work can be ...

Posted by seriousdamage on Sat, 26 Jan 2019 11:54:15 -0800