美文网首页
头文件可以不写<UITableViewDelegate&g

头文件可以不写<UITableViewDelegate&g

作者: 213dfddbef5e | 来源:发表于2017-03-01 16:26 被阅读22次

为什么不写<UITableViewDelegate, UITableViewDataSource>也正常运行啊?

答:因为你已经设置了delegatedatasource,苹果内部实现就是调用delegate的方法。

所以以后头文件都不用写<UITableViewDelegate, UITableViewDataSource>了吗?

答:写了规范些,如果不写就没有补全提示。

相关文章

  • 头文件可以不写<UITableViewDelegate&g

    为什么不写 也正常运行啊? 答:因为你已经设置了delegate和datasource,苹果内部实现就是调用del...

  • 可以不写

    文/等等 关于写东西这件事,已经太久没有开始,也就慢慢成了一个难题。 酝酿的感情,想说的话,热烈的念头,值得纪念的...

  • Xcode10 添加、配置和使用".pch"

    PCH:预编译头文件(Precompile Prefix Header File) 可以将使用多次的 .h 文件写...

  • Read a story

    This is a lion. lt's big. lt's strong. lt has big teeth. ...

  • Mybatis中特殊符号转移

    1. 写法1 原符号替换符号<<<=<=>>>=>=<><>&&'&a...

  • Read a story

    lt's hot?? lt's cool here. lt's a hat. What's this? Do yo...

  • 可以不写啊

    今天,大暑。 大暑,又是一年荔枝红。大暑是吃荔枝的日子。 人类有了写字的时间长与没有写字的时间长相比较,是微乎其微...

  • 致敬青春(2)

    to be or not to be,lt is a question. 这个问题,就这样,开始埋在我的心里,也不...

  • 模块化程序设计

    不建议把变量放在头文件中 但是建议把常量放在头文件中 static是强制隐藏信息的主要工具 也可以模仿C++中的声...

  • test

    <script>alert(1);</script>

网友评论

      本文标题:头文件可以不写<UITableViewDelegate&g

      本文链接:https://www.haomeiwen.com/subject/xdqcgttx.html