Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import UIKit
- class LocationMapViewController: UIViewController, UISearchBarDelegate, NMapViewDelegate, NMapPOIdataOverlayDelegate, NMapLocationManagerDelegate {
- var mapView: NMapView?
- var changeStateButton: UIButton?
- let searchBar = UISearchBar()
- func createSearchBar()
- {
- searchBar.showsCancelButton = false
- searchBar.placeholder = "Enter your search here!"
- searchBar.delegate = self
- self.navigationItem.titleView = searchBar
- }
- ...
- }
- override func viewDidLoad() {
- super.viewDidLoad()
- createSearchBar()
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement