Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
TTtatAttributedLabel,无法在iOS 5.1设备上运行_Ios_Xcode_Ios5_Xcode5_Tttattributedlabel - Fatal编程技术网

TTtatAttributedLabel,无法在iOS 5.1设备上运行

TTtatAttributedLabel,无法在iOS 5.1设备上运行,ios,xcode,ios5,xcode5,tttattributedlabel,Ios,Xcode,Ios5,Xcode5,Tttattributedlabel,我正在尝试在具有相同iOS版本的设备上运行部署目标为iOS 5.1的应用程序。我正在从Xcode 5运行它,并且我已经为属性字符串向我的项目添加了tttatAttributedLabel。但当我运行它时,它会给我以下错误: *由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[UILabel setAttributedText:]:无法识别的选择器已发送到实例0x395670” 在使用Xcode 5之前,我没有在iOS 5.1设备上运行过应用程序,

我正在尝试在具有相同
iOS
版本的设备上运行部署目标为
iOS 5.1
的应用程序。我正在从
Xcode 5
运行它,并且我已经为属性字符串向我的项目添加了
tttatAttributedLabel
。但当我运行它时,它会给我以下错误:

*由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[UILabel setAttributedText:]:无法识别的选择器已发送到实例0x395670”


在使用
Xcode 5
之前,我没有在
iOS 5.1
设备上运行过应用程序,因此我不确定问题出在哪里。非常感谢您的帮助。

错误表示您实际创建了UILabel的实例,而不是TTtatAttributedLabel。检查如何创建labelYes。你说得对。这正是问题所在。我真傻,没注意到!