Created
August 30, 2020 23:53
-
-
Save jasonyunjoonpark/32af776f686b6a371712ed331877b8f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SearchController: UIViewController, UISearchBarDelegate { | |
| @IBOutlet weak var searchBar: UISearchBar! | |
| weak var delegate: SearchBarControllerDelegate? | |
| var expirationsArray: Array<String>? = [] | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| searchBar.delegate = self | |
| } | |
| func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) { | |
| //expirationsArray = AppUtils.getExpirations(for: searchText) <---- this is what I want to do but I don't know how to return Array<String> object from "how_do_i_return_an_array.swift" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment