1
나는 MonoTouch
에 새이며 따라서 MonoTouch.Dialog
입니다. Elements API를 사용하여 "Accounts"와 "Contacts"라는 두 개의 버튼으로 간단한보기를 만들었습니다.MonoTouch.Dialog를 사용하여 검색보기
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
_window = new UIWindow(UIScreen.MainScreen.Bounds);
_rootElement = new RootElement("Sample")
{
new Section()
{
new StringElement ("Accounts", delegate { ElementTapped(); }),
},
new Section()
{
new StringElement ("Contacts", delegate { ElementTapped(); }),
}
};
_rootVC = new DialogViewController(_rootElement);
_nav = new UINavigationController(_rootVC);
_window.RootViewController = _nav;
_window.MakeKeyAndVisible();
return true;
}
두 버튼 중 하나를 누르면 한 번 검색 할 새보기가 나타납니다. EnableSearch
이 true로 설정된 DialogViewController
을 새로 만들어야한다는 것을 알고 있지만, 어떻게 이것을 delegate
에서 내 NavigationController
에 추가합니까?
감사합니다. "계정"과 "연락처"를
완벽한을, 감사합니다. – dewed