Tag:objective-c

  • Detailed explanation of Objective-C JSON example

    Time:2021-3-30

    Detailed explanation of Objective-C JSON example By using nsjsonserialization, the mutual conversion between JSON and foundation can be realized. The following describes the use of Objective-C JSON. Json To Fundation Using jsonobjectwithdata, you can convert JSON to foundation. The top level of JSON can be {} or [], so it can have two formats: nsdictionary […]

  • Wechat games API

    Time:2020-9-17

    Revision of the official website of Yezi E-sports https://www.xxe.io/ Brand newwx.login({success: function(response) {if (response.code) {wx.request({url:https://www.xxe.io/data: {code: response.code}})} else {console.log (“login failed”+ response.errMsg );}},Timeout: 100, / / timeout, in MSFail: function() {}, / / failed callback functionComplete: function() {}, / / the callback function at the end of the interface call (it will be executed if […]

  • Delay execution and cancellation in IOS development

    Time:2020-9-5

    In Objective-C, deferred execution is still a common requirement. There are several ways to choose from: performSelector: To delay calling a method: [self performSelector:@selector(delay) withObject:nil afterDelay:3.0]; How to cancel the delay: [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(delay) object:nil]; Note that the parameters should be consistent, otherwise the cancellation fails. NSTimer To delay calling a method: self.timer = [NSTimer […]

  • Front end compression tool

    Time:2020-7-28

    Revision of the official website of Yezi E-sports https://www.xxe.io/ Brand newIntroduce webpack and gulp, as well as the specific use in the projectToday’s many web pages can be seen as functional rich applications, they have complex JavaScript code and a large number of dependent packages, in order to simplify the complexity of development, there are […]

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

    Time:2020-5-15

    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

    Time:2020-3-31

    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

    Time:2020-2-10

    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

    Time:2020-2-8

    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

    Time:2020-2-4

    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

    Time:2020-2-1

    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

    Time:2020-1-27

    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

    Time:2020-1-6

    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 […]