• Algorithm – count the number of all subviews on a view


    Since then, I have no intention to love good nightLet him go down to the West Tower in the bright moon preface Count the number of subviews on a view. Subviews containing subviews Implementation mode recursion DFS depth first traversal queue BFS breadth first traversal code implementation recursion Thought: Return 0 when the view is […]

  • Yezi technology python3 code is compatible with python2


    Yezi electric competition data official website revised https://www.xxe.io/new debutPython3 code is compatible with python21. Use the future featureEach new version of Python will add new features or make changes to the original features. Some changes are not compatible with the old version, that is, the code running normally in the current version may not run […]

  • Objc runtime comb (I): Overview


    Runtime overview The basic idea of Objective-C is to translate the upper syntax features into C-level calls in the compiler. The target of the calls is the runtime library. At the earliest time, I had a silly idea. Did every objc program pack a runtime in it? Of course, the real implementation will not be […]

  • Objc runtime (3): summary


    The previous several articles are notes made in the process of reading the source code. They are too trivial. Here is a summary. 1. Object structure First of all, let’s go back to this classic picture and show it very wellobject -> class -> metaclassThe relationship between the three. why metaclass Consider the implementation of […]

  • How to obtain football [schedule result] data


    Yezi electric competition data official website revised https://www.xxe.io/new debutimport javax.xml.bind.JAXBContext;import javax.xml.bind.Unmarshaller;import javax.xml.bind.annotation.XmlElement;import javax.xml.bind.annotation.XmlRootElement;import java.io.ByteArrayInputStream;import java.nio.charset.StandardCharsets;import java.nio.file.Files;import java.nio.file.Paths;import java.util.List; /** @API: 4. Schedule results @Website: https://www.xxe.io/ */public class FootballResult { public static void main(String[] args) { try { String content = getContent(); JAXBContext jaxbContext = JAXBContext.newInstance(MatchList.class); Unmarshaller unmarshaller = jaxbContext.createUnmarshaller(); MatchList matchList = (MatchList) unmarshaller.unmarshal(new ByteArrayInputStream(content.getBytes())); […]

  • Linked in / rocketdata with immutable data


    background In our common data variable data framework, the data we read from DB is placed in cache for the upper business call. For example, for a Book object, if we need to use the book object in multiple places in the upper business, we are actually directly referencing the object. If we need to […]

  • Mathematical principle of Bezier curve


    Mathematical principle of Bezier curve I believe that all the archers know what Bezier curve is. Those who are accustomed to using PS will use pen tools, and those who are accustomed to using AI will use Bezier, because the curve drawn by it is easy to be controlled by us and beautiful. Then let’s […]

  • General basic library of flutter


    Develop the application of flitter using flitter ﹣ luakit ﹣ plugin as the basic database At the beginning of this article, we will give the difference between using fluent as the basic library development and ordinary fluent. As the location of flutter is a portable UI package, the basic library function provided by flutter is […]

  • Start developing MAC applications now


    Do you want to develop MAC applications without knowing where to start? This roadmap provides a great starting point for Mac application development. Even if you are already an IOS development expert, this roadmap is still applicable to you. Apple makes it easy to develop applications and submit them to the MAC app store. Follow […]

  • Record a problem with updating masonry


    Today, I encountered a problem that masonry, a well-known third-party library, was used in the project. Because the pod masonry IOS deployment target is 6.0, it is used in the projectmas_topMarginAnd other attributes will report errors, and then cause flashback. -[UIView mas_topMargin]: unrecognized selector sent to instance Reason The reason for flash back is actually […]

  • IOS development learning route


    IOS development learning route Preface Dream architect here is an IOS development engineer who is working hard to learn. At present, he is committed to learning in the whole stack direction. He hopes that he can exchange technology and make progress together with you, and record his learning process with a short book Personal learning […]

  • IOS Development Notes (1) Hello, world!


    Hello,World 🙂 For a new language, according to the Convention, we will write a Hello, world! Next, we will start with Xcode installation and complete a simple hello, world application. Install Xcode Download and install Xcode through the app store, but sometimes the service of the app store is not stable in China, and the […]