2016-07-22 2 views

답변

2

이것은 단지,

문자열의 아이폰에 소문자 문자열로 변환보다 1 인 경우 검사의이 해결 방법을 사용할 수 있습니다

,

NSString *stringToUtter = @"A"; 
if (stringToUtter.length==1) { 
    stringToUtter = [stringToUtter lowercaseString]; 
} 
AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:stringToUtter]; 
utterance.rate = AVSpeechUtteranceMinimumSpeechRate; 
utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-us"]; 
[self.synthesizer speakUtterance:utterance]; 
+0

감사 you.its를 발생 나를 위해 일한다. –