The source code is the Voice sharing application source code, this demo uses the Iflytek speech recognition as the input way to share the content, also supports the manual keyboard input sharing content, limits the share content text cannot exceed 180 characters, the share content input completes can directly share, the Sharing SDK uses the Friend Alliance social sharing.
- (ibaction) Voicerecognize: (ID) sender { [self.textview resignfirstresponder]; _result = @ ""; [_iflyrecognizerview start];} - (void) Onresult: (nsarray *) Resultarray islast: (BOOL) islast{ Nsdictionary *dic = [resultarray objectatindex:0]; nsmutablestring *result = [nsmutablestring new]; nslog (@ "DIC:%@", DIC); for (nsstring *key in dic) { [result appendformat:@ "%@", Key]; } nslog (@ "result:%@" , result); _result = [nsstring stringwithformat:@ "%@%@", _RESULT,RESULT];       &NBsp; if (islast) { if (_result == nil| | [_result isequaltostring:@ ""]) { uialertview *alert = [[uialertview alloc]initwithtitle:@ "not recognized, please say again" message:nil delegate:nil cancelbuttontitle:@ "OK" otherButtonTitles:nil]; [alert show]; }else{ self.textView.text = _result; } }}
<ignore_js_op>650) this.width=650; "id=" aimg_2496 "class=" Zoom "src=" Http://img.662p.com/ios/forum/201410/27 /104304r781mam5ihrwn380.png "width=" "style=" border:0px;/>
Run
<ignore_js_op>650) this.width=650; "id=" aimg_2497 "class=" Zoom "src=" Http://img.662p.com/ios/forum/201410/27 /104304yzjs6hphsuvn550g.png "width=" "style=" border:0px;/>
Run
<ignore_js_op>650) this.width=650; "id=" aimg_2498 "class=" Zoom "src=" Http://img.662p.com/ios/forum/201410/27 /104305txk5v7jcow75wdf5.png "width=" "style=" border:0px;/>
Run
<ignore_js_op>650) this.width=650; "id=" aimg_2499 "class=" Zoom "src=" Http://img.662p.com/ios/forum/201410/27 /104305kni3qbhjgepauhcr.png "width=" "style=" border:0px;/>
SOURCE Download: http://code.662p.com/view/9125.html
Detailed Description: http://ios.662p.com/thread-2164-1-1.html
Run
Voice sharing app iOS source project