Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/27.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
Ios 在iPad上显示盲文字符_Ios_Objective C_Character_Braille - Fatal编程技术网

Ios 在iPad上显示盲文字符

Ios 在iPad上显示盲文字符,ios,objective-c,character,braille,Ios,Objective C,Character,Braille,我正在为iPad开发一个应用程序。出于测试目的,我需要我的应用程序在iPad屏幕上显示盲文字符。使用objective-c,我将字体名称设置为“Apple Braille”,并带有: 但它不起作用。我在iPad上只能看到默认的字母字符,就好像“苹果盲文”的字体名称无法识别一样 有什么帮助吗? 谢谢。苹果盲文不是iOS上内置的系统字体之一。有关如何在iOS应用程序中使用自定义字体的信息,请参阅。我从未使用过@“Apple Braille”字体,我怀疑它是否已预装。 基于,iPhone上可用字体列表

我正在为iPad开发一个应用程序。出于测试目的,我需要我的应用程序在iPad屏幕上显示盲文字符。使用objective-c,我将字体名称设置为“Apple Braille”,并带有:

但它不起作用。我在iPad上只能看到默认的字母字符,就好像“苹果盲文”的字体名称无法识别一样

有什么帮助吗?
谢谢。

苹果盲文不是iOS上内置的系统字体之一。有关如何在iOS应用程序中使用自定义字体的信息,请参阅。

我从未使用过@“Apple Braille”字体,我怀疑它是否已预装。 基于,iPhone上可用字体列表如下所示:

Family name: Hiragino Kaku Gothic ProN W3
    Font name: HiraKakuProN-W3
Family name: Courier
    Font name: Courier
    Font name: Courier-BoldOblique
    Font name: Courier-Oblique
    Font name: Courier-Bold
Family name: Arial
    Font name: ArialMT
    Font name: Arial-BoldMT
    Font name: Arial-BoldItalicMT
    Font name: Arial-ItalicMT
Family name: STHeiti TC
    Font name: STHeitiTC-Light
    Font name: STHeitiTC-Medium
Family name: AppleGothic
    Font name: AppleGothic
Family name: Courier New
    Font name: CourierNewPS-BoldMT
    Font name: CourierNewPS-ItalicMT
    Font name: CourierNewPS-BoldItalicMT
    Font name: CourierNewPSMT
Family name: Zapfino
    Font name: Zapfino
Family name: Hiragino Kaku Gothic ProN W6
    Font name: HiraKakuProN-W6
Family name: Arial Unicode MS
    Font name: ArialUnicodeMS
Family name: STHeiti SC
    Font name: STHeitiSC-Medium
    Font name: STHeitiSC-Light
Family name: American Typewriter
    Font name: AmericanTypewriter
    Font name: AmericanTypewriter-Bold
Family name: Helvetica
    Font name: Helvetica-Oblique
    Font name: Helvetica-BoldOblique
    Font name: Helvetica
    Font name: Helvetica-Bold
Family name: Marker Felt
    Font name: MarkerFelt-Thin
Family name: Helvetica Neue
    Font name: HelveticaNeue
    Font name: HelveticaNeue-Bold
Family name: DB LCD Temp
    Font name: DBLCDTempBlack
Family name: Verdana
    Font name: Verdana-Bold
    Font name: Verdana-BoldItalic
    Font name: Verdana
    Font name: Verdana-Italic
Family name: Times New Roman
    Font name: TimesNewRomanPSMT
    Font name: TimesNewRomanPS-BoldMT
    Font name: TimesNewRomanPS-BoldItalicMT
    Font name: TimesNewRomanPS-ItalicMT
Family name: Georgia
    Font name: Georgia-Bold
    Font name: Georgia
    Font name: Georgia-BoldItalic
    Font name: Georgia-Italic
Family name: STHeiti J
    Font name: STHeitiJ-Medium
    Font name: STHeitiJ-Light
Family name: Arial Rounded MT Bold
    Font name: ArialRoundedMTBold
Family name: Trebuchet MS
    Font name: TrebuchetMS-Italic
    Font name: TrebuchetMS
    Font name: Trebuchet-BoldItalic
    Font name: TrebuchetMS-Bold
Family name: STHeiti K
    Font name: STHeitiK-Medium
    Font name: STHeitiK-Light
还有一个问题是你们是如何提供角色的?您是否在该字体中使用了常规拉丁字符“a-z”? 也许您应该尝试使用,这应该适用于标准字体。

使用以下方法解决:

    brailleSymbol = [[NSMutableString alloc] initWithBytes:&brailleUnicode length:sizeof(brailleUnicode) encoding:NSUTF32LittleEndianStringEncoding];
    brailleSymbol = [[NSMutableString alloc] initWithBytes:&brailleUnicode length:sizeof(brailleUnicode) encoding:NSUTF32LittleEndianStringEncoding];