Xamarin サンプル内のこのクラスを見てください https://github.com/xamarin/monotouch-samples/blob/master/Sound/Sound/SoundViewController.cs
基本的には、自分で作成する必要があります。サンプルDialogViewController
のステートメントが必要になります。using
using MonoTouch.AVFoundation;
using System.Diagnostics;
using System.IO;
using MonoTouch.AudioToolbox;
public class SoundRecorder : DialogViewController {
this.Title = "Record Sound";
root = new RootElement() {
new section () {
new StringElement ("Record", delegate {
// sound recording code from sample for the first button
}
}
}
}
これで始められるはずです。
要素を分離して、次のように個別に宣言することができます。
StringElement myElement = new StyledStringElement("record something");
次に、デリゲートを使用してタップされたイベントをサブスクライブし、ボタンが押されたときにもその方法で処理できます。もう少し頑張れるように。スタイリングの選択肢を増やすには、StyledStringElement
お役に立てれば