English 中文(简体)
隐蔽的UIPicker 在模拟器上而不是在装置上出现的观点
原标题:Overridden UIPickerView instantiated on simulator but not on device

In my project I have a subclass A of a UIPickerView.
In Interface Builder I have a UIPickerView whose type I have changed to my subclass A.
In another class B, also defined in my code, instantiated in Interface Builder and linked to A via its outlet, it refers to A with an IBOutlet field A *mySubclass.

The problem is this:
When running on the simulator it works fine; A breakpoint on B’s awakeFromNib confirms that mySubclass has been loaded and is indeed of type A. When running on the device (iOS4.1 on iPhone 4) however, the same breakpoint reveals that mySubclass is now of type UIPickerView.

增加<代码>awakeFrom Nib至>>确认,在模拟器码上运行时,'s awake 来自Nib的器具是用的,而不是用在装置上。

是否有任何想法说明这一点?

事先得到任何帮助,

Teo

最佳回答

更新:

在经过几天的尝试之后,我最终开始尝试有关该装置的一些实例项目(该装置运作),最后制定了一个新项目,目的是在项目本身有所中断的情况下,将该守则移至各地。

在把新项目命名为有问题的项目后,我注意到,由于一项研究错误,我无法管理该项目。

这使我通过Xcode组织者观看了有关该装置的照片,并且注意到我在那里有两处同样的照片。 删除这些内容再次奏效。 Sigh。 Gla笑了,但如果有人想听的话,我会想听的话。

由于眼球和气味要求出现一个不可能的问题,尽管任何读过这个问题的人现在可能会试图很快将犯罪痕迹从他们的装置中删除。

Best, Teo

问题回答

暂无回答




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签