用于iPhone的用户定义的运行时属性无法正常工作 [英] User Defined Runtime Attributes in IB for iPhone not working

查看:80
本文介绍了用于iPhone的用户定义的运行时属性无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题。

I have a weird problem.

我正在尝试在IB中设置用户定义的运行时属性。如下所示,我在viewController中设置了NSString statID 属性,并希望在IB中为其提供测试值 00000

I am trying to setup User Defined Runtime Attribute in the IB. As shown below I setup a NSString statID attribute in my viewController and wanted to give it a test value 00000 in IB

编译时我在构建时遇到此错误:在10.6之前的Mac OS X版本上用户定义的运行时属性

When I compile that I get this error when building: "User defined runtime attributes on Mac OS X versions prior to 10.6"

我知道我可以在iOS中设置用户定义的属性iOS文档找到这里转到部分:为自定义对象配置运行时属性

I know I can set up user defined attributes in iOS from the iOS docs found here go down to section: "Configuring Runtime Attributes for Custom Objects"

任何想法为什么它给我错误?

Any idea why it is giving me the error?

推荐答案

好的,我得到了答案。

OK, I got an answer.

所以就这样了。

我正在使用XCode 4的测试版。因为它是测试版它有错误的版本,其中一个在IB中显示用户定义的运行时属性窗口。
错误10.6之前的Mac OS X版本上的用户定义的运行时属性通知您用户定义的运行时属性选项仅 可用适用于OS X 应用,而不适用于iOS。

I am using the beta version of XCode 4. As it is a beta versions it has errors, one of them is displaying "User Defined Runtime Attributes" window in an IB. The error "User defined runtime attributes on Mac OS X versions prior to 10.6" informs you that "User Defined Runtime Attributes" option is only availabe for OS X apps and not for iOS.

它让我失望但至少我不知道为什么是它无法正常工作。

It dissapoints me but at least I don't have to wonder why is it not working.

这篇关于用于iPhone的用户定义的运行时属性无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆