Teach you how to customize AlertView

Pictures come from the Internet Preface: The alertView interface of the system is a little rigid, and the animation is a little single. In short, with the development of business, the alertView of the system has been difficult to meet our needs, so it is necessary to customize it. This article introduces how to customize alertView. After read ...

Posted by jib0 on Sat, 29 Jun 2019 21:52:35 +0200

Dude, where is my method?

Links to the original text: Dude, Where's my Call?The original chain of the translation: Dude, where is my method? Imagine one day you're feeding some seemingly harmless code to the Swift compiler. // xcrun -sdk macosx swiftc -emit-executable cg.swift import CoreGraphics let path = CGPathCreateMutable() CGPathMoveToPoint(path, nil, 0.0, 23.0) ...

Posted by theorok on Fri, 28 Jun 2019 01:12:24 +0200

[SceneKit] won't be another option for Unity3D

Last Monday, I believe many people, like me, watched the WWDC 2017 developers'conference. Although the highlights were flat, they could also see a little about Apple's future strategy. Although it has changed from a pioneer to a follower, the principle of the strong is the unchanged truth, and no one can find the right in the construction of th ...

Posted by Gary Kambic on Sun, 23 Jun 2019 00:41:27 +0200

Usage and scenario of swift protocol

Protocol is an important part of swift, similar to the interface in Java, but not quite the same. Compared with OC, swift protocol is more flexible. It can be applied in many scenarios, making the framework structure of the whole project more extensible. I. What scenarios to use protocols Like classes, protocols can be inherited. After inher ...

Posted by fri3ndly on Tue, 18 Jun 2019 20:28:22 +0200

Official swiftUI tutorial

3. Combine View s with Stacks After creating the title view in the previous section, let's add a text view that displays landmark details, such as the name of the park and the state in which it is located. When creating a SwiftUI view, we can describe its content, layout, and behavior in the body property of the view.Since the body property o ...

Posted by GeoffOs on Fri, 14 Jun 2019 22:05:08 +0200

Wang Wei's Translation of Swift Advancement: Set Type Protocol

Related articles:Swift Advancement (Built-in Set Type) - A Record of the Growth of a Non-disciplinary Ban Nung 2017.08.09 sequence Sequence protocol is the basis of set type structure. A sequence represents a series of values of the same type that you can iterate over. Meeting the requirements of the Sequence protocol is very simple. All you ...

Posted by AE117 on Wed, 05 Jun 2019 23:26:59 +0200

Comparison of Swift 3.0 and Swift 2

I. API changes in String classes Apart from the extensive modifications to the API in the Swift version of the Cocoa framework, some of Swift's core libraries have also undergone considerable changes.   String, the string type in Swift 3.0, is more concise on the method API, and the method associated with subscripts varies gr ...

Posted by spellbinder on Tue, 28 May 2019 00:52:48 +0200

swift Notes - Basis (2)

Six, == Optinal== optional type (difficulty): One of the characteristics of swift grammar is that it is a reflection of type safety, Int?,float! Note that the symbols in the back must be close to the type in front, and there can be no blank in the middle; Only Optional type can be null (nil in oc), which ensures that non-optional objects ...

Posted by Bopo on Sat, 25 May 2019 20:56:24 +0200

Deep Understanding of iOS Crash Log

Crash Log There are two main sources of Crash Log: What Apple provides can be copied directly from the user's device or downloaded from iTunes Connect (XCode) Three-party or self-research Framework statistics, three-party services including Fabric, Bugly and so on. The Crash Log mentioned in this article is provided by Appl ...

Posted by tcollie on Sat, 11 May 2019 17:39:20 +0200