Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/107.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/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
iOS6中的替换字符属性_Ios_Ios6_Core Text - Fatal编程技术网

iOS6中的替换字符属性

iOS6中的替换字符属性,ios,ios6,core-text,Ios,Ios6,Core Text,@“\uFFFC”替换字符是在iOS6中绘制的,这在iOS5中不会发生。在这些替换字符的位置绘制图像后,小矩形显示在图像顶部 在不更改CTRun属性的情况下,是否可以避免这种情况?(通过将文本颜色设置为清除?) 我正在学习本教程 但是,我没有使用“”字符,而是使用替换字符(如文档所建议的)。 问题是,通过使用此字符,我正在绘制的图像上会显示一个矩形(此问题仅在iOS6中发生) 你能展示一些显示问题的代码吗? //add a space to the text so that it can cal

@“\uFFFC”替换字符是在iOS6中绘制的,这在iOS5中不会发生。在这些替换字符的位置绘制图像后,小矩形显示在图像顶部

在不更改CTRun属性的情况下,是否可以避免这种情况?(通过将文本颜色设置为清除?)

我正在学习本教程

但是,我没有使用“”字符,而是使用替换字符(如文档所建议的)。 问题是,通过使用此字符,我正在绘制的图像上会显示一个矩形(此问题仅在iOS6中发生)


你能展示一些显示问题的代码吗?
//add a space to the text so that it can call the delegate
[aString appendAttributedString:[[[NSAttributedString alloc] initWithString:@"\uFFFC" attributes:attrDictionaryDelegate] autorelease]];