ios - MonoTouch.Dialog 事件和部分

标签 ios xamarin.ios monodevelop monotouch.dialog

我还需要一个帮助。

第一个问题是:我了解到 MonoTouch.Dialog 上的部分、文本、图像等将动态创建。但是我也可以有按钮吗?如果是,我如何绑定(bind)该按钮的事件。

第二个问题是:基本上我有一个搜索文本和一个按钮,单击按钮时,文本被发送到 Twitter-url,以获取推文,这些推文需要显示,现在它们包含、图像、文本、回复和收藏夹。搜索结果和搜索按钮+编辑框可以成为一个 ViewController 的一部分吗?

最佳答案

But can i have buttons as well?

DialogViewController 中的

Element 通常充当按钮。但是如果你想要一个真正的 UIButton,你可以这样做:Monotouch.Dialog two tables

Can the search result and the Search Button+Edit box, be the part of one ViewController?

我认为这样做没有任何问题。使用上述链接中的代码并添加一个 EntryElement

the text is sent to the Twitter-url, to get the tweets, these tweets need to be displayed

你看过 TweetStation ?它是一个基于 MonoTouch.Dialog 的开源应用程序。它可能会帮助您回答两个方面的问题。

关于ios - MonoTouch.Dialog 事件和部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8485110/

相关文章:

ios - MonoTouch 迁移分析器

ios - MonoTouch:无法创建PSTitleValueSpecifier

android - Xamarin Android 应用程序意外关闭

ios - 如何在具有授权证书的 React Native Webview 上加载网站

ios企业开发者账号

ios - RxSwift 最佳实践 : Shall I use a Subject for my internal data source?

iphone - 如果 monotouch 可用,为什么要使用 xcode?

ios - Google Maps SDK iOS 使用经度和纬度获取首都的简单方法

iphone - 将 ZeroMQ 交叉编译到 ARM 以用于 MonoTouch iPhone 应用程序配置设置

ios - 如何从 UINavigationBar 中删除背景图像