Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. import UIKit
  2.  
  3. class LocationMapViewController: UIViewController, UISearchBarDelegate, NMapViewDelegate, NMapPOIdataOverlayDelegate, NMapLocationManagerDelegate {
  4.  
  5. var mapView: NMapView?
  6. var changeStateButton: UIButton?
  7. let searchBar = UISearchBar()
  8.  
  9. func createSearchBar()
  10. {
  11. searchBar.showsCancelButton = false
  12. searchBar.placeholder = "Enter your search here!"
  13. searchBar.delegate = self
  14.  
  15. self.navigationItem.titleView = searchBar
  16. }
  17. ...
  18. }
  19.  
  20. override func viewDidLoad() {
  21. super.viewDidLoad()
  22. createSearchBar()
  23. ...
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement