OGeek|极客世界-中国程序员成长平台

标题: ios - MonoTouch.Dialog 事件和部分 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 20:43
标题: ios - MonoTouch.Dialog 事件和部分

我需要更多帮助。

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

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



Best Answer-推荐答案


But can i have buttons as well?

DialogViewController 中的

Element 通常起到按钮的作用。但如果你想要一个 real 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/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4