search

Home  >  Q&A  >  body text

What is the difference between Blocks in Objective-C and Closures in Swift?

Block is a closure in OC. What is the difference between it and a closure in swift?

怪我咯怪我咯2833 days ago672

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:30:03

    The so-called closures all control the scope of variables, so there is no need to understand the differences in depth! Never change without departing from its origin

    reply
    0
  • Cancelreply