`
dcj3sjt126com
  • 浏览: 1885643 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Capturing 'self' strongly in this block is likely to lead to a retain cycle

    博客分类:
  • IOS
 
阅读更多

错误ID

ListViewController.m:135:10: Capturing 'self' strongly in this block is likely to lead to a retain cycle

开了ARC

    [_tableView setPullToRefreshHandler:^{
        [self dataDidRefresh:nil];
    }];

 

 

回答

 

 

 

你把self转换一下加上block字段之后就不会被retain了

__block ViewController *controller = self;
[_tableView setPullToRefreshHandler:^{
[controller dataDidRefresh:nil];
}];

分享到:
评论

相关推荐

    How is logging implemented in OSS?

    Method: In this paper, we carried out an empirical study to explore the logging practice in open source software projects so as to establish a basic understanding on how logging practice is applied ...

    微软内部资料-SQL性能优化2

    A reference to an invalid page (a page that is not in your working set) is referred to as a page fault. Assuming the page reference does not result in an access violation, a page fault can be either ...

    BUS Hound

    PASS_THROUGH data structure CDB SCSI command descriptor block (Known as a packet command for ATAPI devices) CTL 8 byte setup packet of a USB control transfer DI Data In (Device to PC ...

    A_network_location-allocation_model

    to impairment by the flow capturing objective than is the flow capturing model to the p-median objective. The results encourage us to apply the model to a real-world network using actual traffic data.

    Introduction to Visual Computing: Core Concepts in Computer Vision, Graphics

    Introduction to Visual Computing: Core Concepts in Computer Vision, Graphics, and Image Processing covers the fundamental concepts of visual computing. Whereas past books have treated these concepts ...

    A Guide to Using VBScript in SecureCRT

    根据给定文件的信息,以下是对标题“A Guide to Using VBScript in SecureCRT”及描述内容的知识点整理: VBScript是一种由微软开发的轻量级的脚本语言,它通常用于客户端脚本编程,在IE浏览器中可以执行。而...

    software architecture in practice 2rd edition

    This award-winning book, substantially updated to reflect the latest developments in the field, introduces the concepts and best practices of software architecture-how a software system is structured ...

    Mobile DevOps-Packt Publishing(2018).epub

    It is something that can improve integration and delivery, as well as provide a greater feedback mechanism and early defect capturing tools. Mobile DevOps comes with its own implementation challenges...

    蜘蛛网站采集---封装类

    In this article, we will introduce the SharpPcap .NET assembly (library) for interfacing with libpcap or winpcap from your .NET application and give you a detailed programming tutorial on how to use ...

    Practical Packet Analysis: Using Wireshark to Solve Real-World Network Problems

    Wireshark is the world's most popular network sniffer that makes capturing packets easy, but it won't be much help if you don't have a solid foundation in packet analysis. Practical Packet Analysis, ...

    CCD_descript

    When a voltage is applied to the electrode, a depletion layer forms in the semiconductor substrate beneath the dielectric film. This depletion layer creates a potential well for minority carriers, ...

    Salesforce doc: Integration Patterns and Practices

    **Pattern Summary**: This pattern is used when an external system needs to initiate a process in Salesforce and receive a response. It is useful for scenarios where real-time interaction is required. ...

    毕业设计_论文正文_宋启迪1

    This high accuracy indicates that the CNN is capable of effectively capturing the intricate patterns and variations in handwritten digits, making it suitable for practical applications. The research...

    Profiling all paths

    - **Probe Instrumentation Phase:** In this phase, a unique path ID is assigned to each path. This allows for the identification and tracking of individual paths during program execution. - **Backwalk ...

    网络协议攻击

    What’s in This Book? This book contains a mix of theoretical and practical chapters. For the practical chapters, I’ve developed and made available a networking library called Canape Core, which you ...

    NOTE D5eng.pdf

    - **Ease of Use**: The device is designed to be simple to operate, making it accessible to a wide range of users. - **Efficiency**: It is effective in identifying leaks quickly and accurately. - **...

    基于LVDS的某武器遥测系统数据记录仪研制.doc

    In this particular design, a buffer, implemented using an FPGA's internal FIFO (First In First Out), is used to temporarily hold the incoming data from the LVDS receiver before it is transferred to ...

    Introduction to iUMLite 2.20

    Sequence diagrams are used to model the interactions between domains and are essential for capturing the flow of control within a single use case. To create a sequence diagram: - Define the ...

    Penetration Testing with Raspberry Pi

    cost hacking tool using Kali Linux 2 Protect your confidential data by...This Book Is For If you are a computer enthusiast who wants to learn advanced hacking techniques using the Raspberry Pi 3 as your ...

Global site tag (gtag.js) - Google Analytics