Tag:code

  • iOS dispatch_ After delayed execution results in delayed dealloc

    Time:2022-5-5

    Let’s build a new oneNewViewController, at the beginningViewControllerWrite the following code – (void)viewDidLoad { [super viewDidLoad]; UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; btn.frame = CGRectMake(100, 100, 100, 50); btn.backgroundColor = [UIColor brownColor]; [btn addTarget:self action:@selector(jump) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview:btn]; } -(void)jump{ NewViewController *newVC = [[NewViewController alloc]init]; [self presentViewController:newVC animated:YES completion:nil]; } Then inNewViewControllerLi: -(void)dealloc{ NSLog(@”————–dealloc”); } – […]

  • IOS dynamic graph loading notes

    Time:2022-5-5

    In the usage scenario, the effect of gift giving in the live broadcast. After clicking send gift, you need to display the dynamic graph GIF The current implementation scheme is to obtain the URL of the GIF graph from the server interface, and then start the display. After the display is completed, remove the picture […]

  • Usage practice of clion debug mode

    Time:2022-5-5

    1、 Background Recently, in order to take the postgraduate entrance examination, I began to use C language and data structureVisual Studio 2019As an editor, but I’m not used to it; I’ve been using the editor of JetBrains company before, and I just found that C language can be usedCLionHowever, it is found that it will […]

  • Do you really understand export default?

    Time:2022-5-5

    export default Aandexport { A as default }At first glance, it looks the same, but there are some subtle differences. It is easier to leave a hole. This paper introduces the differences between the two writing methods. importStatement imports a reference, not a value If there is an export, there must be an import. Let’s […]

  • Found a problem that postman automatically generates interface calling code

    Time:2022-5-5

    Postman is an interface testing and verification tool often used by programmers. Click the button below in postman to see the implementation code in different programming languages corresponding to the interface call in code snippet. For example, automatically generate the corresponding jQuery Code: However, I found that these automatically generated codes can not be directly […]

  • Concise and practical redis distributed lock usage

    Time:2022-5-5

    This article is transferred from: Le byte This article mainly explains the usage of redis distributed lock For more Java related information, you can follow the official account Le byte. Send: 999 In many cases, the distributed lock function needs to be used in microservices. At present, the more common scheme is to realize the […]

  • Fluent: introduction to bloc mode

    Time:2022-5-5

    Original text:Fluent: introduction to bloc mode Learn how to use the popular bloc pattern to build a fluent application and use dart streams to manage the data flow through widgets. Designing the structure of an application is often one of the most controversial topics in application development. Everyone seems to have their favorite architectural model […]

  • See, this is what modern PHP should look like

    Time:2022-5-5

    This is a community collaborative translation article. The translation has been completed. For more information, please clickIntroduction to collaborative translation 。 The title of the article is really pretentious, isn’t it? Yes, although we have worked with PHP for many years, can we tell which are the best practices and tools? I can’t, but I’m going […]

  • Database stored procedure

    Time:2022-5-5

    What is a database stored procedure? In fact, the definition is very simple: it is a defined SQL code that can be called repeatedlyWe can also define stored procedures that can accept parameters, so that we can deal with requirements more flexibly. grammar CREATE PROCEDURE procedure_name AS sql_statement GO; EXEC procedure_name; example CREATE PROCEDURE SelectAllCustomers […]

  • Xamarin forms labs RadioButton control

    Time:2022-5-5

    Today, take RadioButton control as an example to introduce how xamarin forms labs is used in our project XLabs is a open source project that aims to provide a powerful andcross platform set of services and controls tailored to work withXamarin and Xamarin Forms. Xlabs is an open source project that provides cross platform services […]

  • Git daily operation command

    Time:2022-5-5

    Git common operations Configuration operation Git config — list # view git configuration information git config user. Name # view git user name git config user. Email # view mailbox configuration git config –global user. Name “nameval” # global configuration user name git config –global user. email ” [email protected] “# global configuration mailbox” basic operation […]

  • Solutions to JSP Chinese problems

    Time:2022-5-5

    In JSP, Chinese garbled code often makes people feel confused.For the common Countermeasures of Chinese processing, the following two kinds are often seen on the Internet: <%@ page contentType=”text/html;charset=gb2312″ %>   Or: <% String hi = “hello”;byte[] tmpbyte=Hi.getBytes(“ISO8859_1”); Hi=new String(tmpbyte); out.print(Hi); %>   The virtual Dragon Pavilion has also been modified by the above two methods, which […]