简体   繁体   English

tableviewcontroller的奇怪行为

[英]strange behaviour with a tableviewcontroller

iphone http://sharingdream.com/phone.jpg iphone http://sharingdream.com/phone.jpg

Dear all, I'm having a strange problem with an application I'm building using mono touch. 亲爱的所有人,我使用单点触控构建的应用程序遇到了一个奇怪的问题。 Basically like you can see from the image, there is a grid on the first image. 基本上就像您可以从图像中看到的那样,第一张图像上有一个网格。 The class is called DialogViewController and extends a UITableViewController. 该类称为DialogViewController,它扩展了UITableViewController。 This one is working perfectly. 这是完美的工作。 If I click on a cell than I have the second image (the one in the middle). 如果单击一个单元格,则第二个图像(中间的一个)将显示。 So far everything is ok. 到目前为止,一切正常。 If I'm on the second view (the image on the middle) and I click on the first icon (the little blu ball) than I have what you can see on the third image. 如果我在第二个视图(中间的图像)上,然后单击第一个图标(小蓝球),那么我在第三幅图像上可以看到的内容。 This image should be exactly the same of the first image, but for a strange reason I'm losing all the content from this view. 该图像应该与第一个图像完全相同,但是出于一个奇怪的原因,我丢失了该视图中的所有内容。 Do you have any idea why this is happening? 您知道为什么会这样吗?

我通过将每个tabbaritem设置为在选中时enabled=false来解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM