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.
我正在修改设计器中的布局,并将图像视图的父级从面板更改为活动。之前在面板中的 imageview 不会响应点击。永远不会到达放置在 sub 中的断点。
我尝试了初始化和不初始化图像视图。没什么区别。
关于为什么会发生这种情况的任何想法?
您不应初始化使用设计器添加的视图。确保事件名称属性与子名称匹配。