ios - 带搜索栏的导航栏 iPad Monotouch

标签 ios ipad xamarin.ios uinavigationbar searchbar

我想要一个这样的页面:

enter image description here

为iPad map 的 map 页面。如您所见,它的顶部有一个位置搜索栏。

当屏幕顶部有导航栏时,是否可以在顶部有一个像这个图像的搜索栏?

编辑: 比实现这一点更重要的是,在导航栏上使用搜索栏与苹果指南没有错。也请帮忙解决这个问题。

谢谢

最佳答案

这不是 agains iphone quide line。我使用此搜索栏的申请已获批准。

下面的代码会将搜索栏添加到您的导航栏:

LocationSearchBar = new UISearchBar (new RectangleF (0,0,250,44));
            UIBarButtonItem searchButtonItem = new UIBarButtonItem (LocationSearchBar );
this .NavigationItem .RightBarButtonItem =searchButtonItem;

关于ios - 带搜索栏的导航栏 iPad Monotouch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16123552/

相关文章:

ios - 如何在 MonoTouch 中实现 UISearchBar

ios - MonoTouch,更改表格 View 数据

iOS MVC : get view controller class from model?

c++ - ObjC++ 调用用 C 编写的静态库

ios - 在 iOS 7 的 Popover 中通过 TableView 搜索的问题

javascript - 仅对所有 iPhone 和 IPADS 进行样式设置的 CSS 样式

c++ - sprite在cocos2d-x中无法移动

android - 跨移动选项

ios - 如何在设备ipad/iphone中查看下载的文件

c# - 如何在 xamarin iOS 中使用 swift