자 마린 샘플 기본적으로 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
희망이
는 여전히이 문제가있는 데 도움이할까요? – BRogers