Tag: monotouch.dialog

Monotouch.Dialog – UISearchBar Tint

当在DialogViewController上启用search栏时,search栏的色调如何改变? EnableSearch = true; SearchPlaceholder = "Find station"; AutoHideSearch = false;

如何在DialogViewController上将背景设置为透明

当我将MonoTouch.Dialog背景颜色设置为uiclear(透明)时,它会抛出exception,为什么? 以及如何将其设置为透明。 未处理的exception:System.NullReferenceException:未将对象引用设置为MyDialogViewController.LoadView()中MyDialogViewController.cs中的[0x00016]对象引用:ParentViewController.View.BackgroundColor = UIColor.Clear public class MyDialogViewController: DialogViewController { public MyDialogViewController (RootElement root) : base (root) { } public override void LoadView() { base.LoadView (); this.TableView.BackgroundColor = UIColor.Clear; ParentViewController.View.BackgroundColor = UIColor.Clear; } } public void xxxxx(){ var menu = new RootElement(""){ new Section ("Demo"){ new EntryElement("Name", "",""), }, }; var menuDVC = new MyDialogViewController […]

MonoTouch.Dialog:EntryElement的背景颜色

MonoTouch.Dialog EntryElement的背景颜色是EntryElement改变的?

使用DecelerationEnded会干扰其他callback

我试图使用DecelerationEndedcallback与MT.Dialog元素上的“Tapped”callback一起使用。 我不能让这两个人同时工作。 当DecelerationEndedcallback被注释掉时,“tapped”callback工作。 当它被注释时,“tapped”callback不会被触发(而DecelerationEnded不会)。 当DecelerationEnded调用移动到Root的设置之上时,button“tapped”的callback工作,但是DecelerationEndedcallback没有。 延迟callback设置,直到ViewWillAppear也不能解决任何问题。 任何解决scheme 示例代码: public class TestController : DialogViewController { public TestController () : base(UITableViewStyle.Plain, null, true) { // Create list of 20 buttons. Section s = new Section(); for (int i = 0; i < 20; i++ ) { s.Add(new StringElement("test " + i, () => { Console.WriteLine("Tapped"); // Tapped […]

Monotouch.Dialog和iAds

我正在玩iAds。 我想将它添加到基本上是一堆Monotouch.Dialog视图的应用程序。 添加一个UIViewController ,然后添加一个ADBannerView和一个Monotouch.Dialog ,或者我应该添加iAds视图到Monotouch.Dialog ViewController?

可以通过触摸MonoTouch.Dialog中的单元格的外部解除键盘?

可能重复: MonoTouch.Dialog:通过触摸DialogViewController中的任何位置来closures键盘 我注意到,当触摸表格单元格(我认为是“部分”)之外,touchesBegan方法不会被调用,所以我不能调用EndEditing或ResignFirstReponder 。 我正在创build一个多行入口元素; 因此,返回键将转到一个新行,而不是“返回”。 这是预期的行为。 但是,我没有办法解雇键盘。 我注意到在iPhone(General-> Keyboard-> Shortcuts)菜单的设置中,或者当input凭证时,在外部区域的触摸不会响应响应者。 这是否意味着这是整个iOS的限制(或者苹果公司在这些情况下是不适合的)? 有没有办法做到这一点? 在这里,我收集了一个相同的问题,但没有人提出一个有效的答案: 我可以通过触摸DialogViewController(MonoTouch.Dialog)的背景来解雇iPhone键盘吗? 也许在一年半的时间里有人解决了它?

Monotouch.Dialog从db生成并保留值

我有一个设置视图,我正在使用MT.D来构build我的用户界面。 我只是从数据库中读取元素来填充一个节中的元素。 我不知道该怎么做是访问每个元素的属性或值。 我想根据数据库中的值为每个项目设置不同背景颜色的元素。 我也希望能够得到选定的值,以便我可以在数据库中更新它。 下面是用MT.D做UI界面的代码的渲染。 我可以得到值显示,并像他们应该滑出…但是,造型或添加代表他们来处理我丢失的点击。 List<StyledStringElement> clientTypes = SettingsController.GetClientTypes (); public SettingsiPhoneView () : base (new RootElement("Home"), true) { Root = new RootElement("Settings") { new Section ("Types") { new RootElement ("Types") { new Section ("Client Types") { from ct in clientTypes select (Element) ct } }, new StringElement ("Other Types") }

将图像添加到Monotouch.Dialog中的部分

我用一些小节创build了一个使用MonoTouch.Dialog的视图。 这些部分需要在其他部分之前添加一个图像,但是我努力将UIImage添加到第一部分之前的区域。 我将如何去做这件事? 我已经强调了RootElement中我希望图像去的地方 public void HomeScreen () { var root = CreateRoot_HomeScreen (); var dv = new DialogViewController (root, true); navigation.PushViewController (dv, true); } RootElement CreateRoot_HomeScreen() { // Set up the ImageView with the Logo in it var logo = UIImage.FromFile("Images/logo.png"); var imageView = new UIImageView(logo); return new RootElement("iEngage"){ // The Image should go […]

MonoTouch.Dialog:如何设置EntryElement的字符数限制

我无法find如何限制EntryElement上的字符EntryElement

Application Loader报告缺less代码签名证书

I am developing my App in xamarin studio. I want the solution for xamarin Ios app not on xcode. I produce screenshots about my issue.please give me the right solution. 我正在创build分发configuration文件,如下所示 And finally Signing Identity is in Developer(Automatic),everything will be fine and app deploying on device but when uploading to the application loader i am […]