我想要一个这样的页面:
为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/