Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我有一个包含两个子视图的 containerView。一个子视图包含按钮列表,另一个包含基于按钮选择的表格视图,在第一个视图中,表格视图的内容必须更改。
我的问题是同时点击按钮和内容视图表时应用程序崩溃。请指导我解决此问题。
在您点击按钮的情况下,您正在重新加载表格并同时从表格中选择行。这是不一致的。如果您只想执行一项操作,请为您的 containerView 的所有子视图设置独占触摸。
对于所有子视图做-
[subView setExclusiveTouch:YES];