2013-04-20 68 views
1

導航條我想有一個頁面是這樣的:與搜索欄的iPad的MonoTouch

enter image description here

它是iPad的地圖的地圖頁面。正如你所看到的,它的頂部有一個位置搜索欄。

當屏幕頂部有導航欄時,是否可以在頂部有一個像這樣的圖像的搜索欄?

編輯: 不僅僅是實現這一點,在導航欄上使用搜索欄對於蘋果指南行不是錯誤的。請幫助也這一點。

謝謝

回答

1

它是不是iphone再次線。我的申請與此搜索欄已獲批准。

下面的代碼將增加uisearch欄到您的導航欄:

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