- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我运行我的应用程序时,我收到此错误:
2014-08-11 10:52:10.546 ControlViewTest[918:60b] -[UIViewController collectionView:numberOfItemsInSection:]: unrecognized selector sent to instance 0x8c862f02014-08-11 10:52:10.605 ControlViewTest[918:60b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController collectionView:numberOfItemsInSection:]: unrecognized selector sent to instance 0x8c862f0'* First throw call stack:( 0 CoreFoundation 0x017ec1e4 exceptionPreprocess + 180 1 libobjc.A.dylib 0x0156b8e5 objc_exception_throw + 44 2 CoreFoundation 0x01889243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275 3 CoreFoundation 0x017dc50b ___forwarding_ + 1019 4 CoreFoundation 0x017dc0ee _CF_forwarding_prep_0 + 14 5 UIKit 0x008b0c34 -[UICollectionViewData _updateItemCounts] + 331 6 UIKit 0x008b0ce1 -[UICollectionViewData _validateItemCounts] + 45 7 UIKit 0x008b2c64 -[UICollectionViewData numberOfSections] + 35 8 UIKit 0x0087d6ed -[UICollectionView numberOfSections] + 62 9 UIKit 0x0089d614 -[UICollectionViewFlowLayout(Internal) _getSizingInfos] + 205 10 UIKit 0x0089e48f -[UICollectionViewFlowLayout(Internal) _fetchItemsInfo] + 521 11 UIKit 0x00899fe2 -[UICollectionViewFlowLayout prepareLayout] + 157 12 UIKit 0x008b0d9d -[UICollectionViewData _prepareToLoadData] + 76 13 UIKit 0x008b15c5 -[UICollectionViewData validateLayoutInRect:] + 56 14 UIKit 0x00877603 -[UICollectionView layoutSubviews] + 173 15 UIKit 0x0029a964 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355 16 libobjc.A.dylib 0x0157d82b -[NSObject performSelector:withObject:] + 70 17 QuartzCore 0x03c5745a -[CALayer layoutSublayers] + 148 18 QuartzCore 0x03c4b244 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380 19 QuartzCore 0x03c573a5 -[CALayer layoutIfNeeded] + 160 20 UIKit 0x0035cae3 -[UIViewController window:setupWithInterfaceOrientation:] + 304 21 UIKit 0x00272aa7 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 5212 22 UIKit 0x00271646 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 82 23 UIKit 0x00271518 -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 117 24 UIKit 0x002715a0 -[UIWindow _setRotatableViewOrientation:duration:force:] + 67 25 UIKit 0x0027063a 57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 120 26 UIKit 0x0027059c -[UIWindow _updateToInterfaceOrientation:duration:force:] + 400 27 UIKit 0x002712f3 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 870 28 UIKit 0x002748e6 -[UIWindow setDelegate:] + 449 29 UIKit 0x0034eb77 -[UIViewController _tryBecomeRootViewControllerInWindow:] + 180 30 UIKit 0x0026a474 -[UIWindow addRootViewControllerViewIfPossible] + 591 31 UIKit 0x0026a5ef -[UIWindow _setHidden:forced:] + 312 32 UIKit 0x0026a86b -[UIWindow _orderFrontWithoutMakingKey] + 49 33 UIKit 0x002753c8 -[UIWindow makeKeyAndVisible] + 65 34 UIKit 0x00225bc0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 2097 35 UIKit 0x0022a667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824 36 UIKit 0x0023ef92 -[UIApplication handleEvent:withNewEvent:] + 3517 37 UIKit 0x0023f555 -[UIApplication sendEvent:] + 85 38 UIKit 0x0022c250 _UIApplicationHandleEvent + 683 39 GraphicsServices 0x037e1f02 _PurpleEventCallback + 776 40 GraphicsServices 0x037e1a0d PurpleEventCallback + 46 41 CoreFoundation 0x01767ca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 53 42 CoreFoundation 0x017679db __CFRunLoopDoSource1 + 523 43 CoreFoundation 0x0179268c __CFRunLoopRun + 2156 44 CoreFoundation 0x017919d3 CFRunLoopRunSpecific + 467 45 CoreFoundation 0x017917eb CFRunLoopRunInMode + 123 46 UIKit 0x00229d9c -[UIApplication _run] + 840 47 UIKit 0x0022bf9b UIApplicationMain + 1225 48 ControlViewTest 0x0000264d main + 141 49 libdyld.dylib 0x01e33701 start + 1)libc++abi.dylib: terminating with uncaught exception of type NSException(lldb)
最佳答案
您的 UICollectionView
具有一个未实现必需方法的数据源集 collectionView:numberOfItemsInSection:
。您需要为 UICollectionView
分配一个有效的数据源:您编写的并实现 collectionView:numberOfItemsInSection:
的类。
关于ios - libc abi.dylib : terminating with uncaught exception of type NSException CollectionView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25239766/
我看到这两个项目非常相关,但它们之间有什么区别?官方网页并没有说明太多。 我知道ABI(Application Binary Interface)用于在不同平台之间提供低级二进制接口(interfac
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 6年前关闭。 Improve thi
现代 glibc 二进制文件在 Linux 中称为 libc.so.6。为什么这里用“6”? libc.so.1 或 libc.so.8 也可以是好名字恕我直言。 维基百科在 http://en.wi
我在我的 Linux Mint 14 Nadia 中安装了 Matlab(a uname -a 显示:Linux Ideapad-Z570 3.5.0-17-generic#28-Ubuntu SMP
我有一个使用 eventfd 和 timerfd 内核系统调用的应用程序。为此,您需要一个现代内核和一个支持它们的 libc,至少是 2.8。 我目前的情况是,我的系统具有正确的内核,但是 2.7.1
我有一个用 musl libc 编译的共享库 $ readelf -d ./libinterop_d.so Dynamic section at offset 0x8ecb0 contains 22
我的问题是,是否总是需要 libc.a,即使我希望链接到 libc.so。我搜索了互联网,它给出了 3 个可能的答案(冲突) 1. c program will require to link to
我安装了多个版本的 libc,我如何在编译时选择要链接的对象? 现在我正在编译 g++ prog.cpp 最佳答案 您的程序将链接到 libc。当您在 gdb 中运行时,libc-dbg 将用于读取符
我在 Ubuntu 16.04 64 位上使用 gcc 5.4.0。当我编译程序时: gcc -o prog prog.c GCC 会自动链接到 C 标准库,因此我不必专门这样做。 我如何查看 gcc
我正在为我的系统安全类编写返回 libc 攻击。一、漏洞代码: //vuln.c #include #include int loadconfig(void){ char buf[1024];
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a software
我正在尝试查找信息,但我没有在 clang 网站上看到它。我想尝试在 Windows 上使用它,但我不知道它是有自己的 libc 还是使用 MS 损坏的 libc? 另一个问题:如果我用 clang
我正在使用 clang 的规定通过插件和 clang 的 LibTooling 开发插件和工具。我能够做以下事情: 从 svn(Linux 和 OSX),通过运行配置脚本(不使用 cmake)按照入门
尝试运行时出现以下错误。 lib/libc.so.6:找不到(test.so)所需的版本“GLIBC_2.7” 要解决这个问题,在编译时静态链接到 libc-2.11.a 是否安全,这样在运行时就不会
首先,我在谷歌上搜索了很多,但没有找到与我的案例相关的任何东西,我有一个ELF可执行文件,我试图在我的Ubuntu WSL中运行它,我已经更改了权限(chmod+x文件),当我运行它时,显示以下错误。
GNU page说: Your program can arrange to run its own cleanup functions if normal termination happens.
我正在尝试在我的路由器上交叉编译 MIPSEL。我在汇编中找到了一些东西,但现在我开始尝试编译基本的 C 代码。 目前只有简单的 hello world c 代码,并使用 mipsel-linux-g
libc 中预期的字符编码是什么?例如,gethostname(char name, size_t namelen);以 char 作为参数。名称参数是否应该以 utf8(保持 ascii 完整)或纯
题 如果我包括 time.h ,更改“源类型参数”并重新包含该 header ,难道不应该添加这些新定义吗?我知道这是由于包括 guard 而发生的。我的问题是:这是 libc 中的错误吗?难道它不能
我正在学习Ubuntu上的动态链接器。我想导入我需要的libc函数,但是它链接了while libc.so文件。我不知道该怎么做,所以我来这里寻求帮助。 最佳答案 如果您将程序链接到动态库(例如 li
我是一名优秀的程序员,十分优秀!