title: 項目遇到的問題
date: 2016-11-28 11:24:07
tags: 問題
categories: 分類
1. AVAudioRecorder錄音和AVAudioPlayer播放的音頻聲音很小
解決方案
在調(diào)用AVAudioPlayer的播放方法前,加入如下代碼:
UInt32 doChangeDefaultRoute = 1;
AudioSessionSetProperty(kAudioSessionProperty_OverrideCategoryDefaultToSpeaker,sizeof(doChangeDefaultRoute), &doChangeDefaultRoute);
2. 上傳到APP Store時遇到 URL Scheme的問題
The following URL schemes found in your app are not in the correct format:[12345678]. URL schemes need to begin with an alphabetic character,and be comprised of alphanumeric characters, the period, the hyphen or the plus sign only. Please see RFC 1738 for more detail.
這個問題是在 項目->info->URL Types 對應(yīng)的位置沒有按照字母+數(shù)字(即對應(yīng)的appid)的格式書寫
例如上述的url scheme 對應(yīng)的是騰訊QQ杨蛋,原來填的12345678要填寫成tencent12345678