在设置了代理后发现 cellForItemAt 一直不被调用,但是 numberOfItemsInSection 可以调用,查找各种方法未解决,最后发现应该是: 转载于:https://www.cnblogs.com/txq520/p/7325345.html