PlacesVC
class PlacesVC: UIViewController, SJFluidSegmentedControlDelegate, SJFluidSegmentedControlDataSource, UITableViewDataSource, UITableViewDelegate, UISearchDisplayDelegate
Undocumented
-
Undocumented
Declaration
Swift
@IBOutlet weak var segControl: SJFluidSegmentedControl!
-
Undocumented
Declaration
Swift
@IBOutlet weak var subCatTableView: UITableView!
-
Undocumented
Declaration
Swift
@IBOutlet weak var tableView: UITableView!
-
Undocumented
Declaration
Swift
@IBOutlet weak var backgroundView: UIView!
-
Undocumented
Declaration
Swift
@IBOutlet weak var constraintBottomView: NSLayoutConstraint!
-
Undocumented
Declaration
Swift
@IBOutlet weak var btnSelectSubCat: UIButton!
-
Undocumented
Declaration
Swift
var tableViewShowType = OthersTableViewShowType.Results
-
Undocumented
Declaration
Swift
var selectedMainType = GRPlaceMainTypes.Restaurants
-
Undocumented
Declaration
Swift
var isNewPlacesLoading = false
-
store the Place sub type for some type untill user done the sub type selection
Declaration
Swift
var selectedPlaceTypeTemp = GRPlaceSubType.Restaurant
-
Undocumented
Declaration
Swift
override func viewDidLoad()
-
Undocumented
Declaration
Swift
func setTitleOfSubCatBtn()
-
load restaurants from firestore by sub types
Declaration
Swift
func loadRestaurants(typeNames : [String])
-
load companies from firestore by sub types
Declaration
Swift
func loadCompanies(typeNames : [String])
-
load public places from firestore by sub types
Declaration
Swift
func loadPublicPlaces(typeNames : [String])
-
Undocumented
Declaration
Swift
override func viewWillAppear(_ animated: Bool)
-
Undocumented
Declaration
Swift
func showSubCats()
-
Undocumented
Declaration
Swift
func hideSubCat()
-
Undocumented
Declaration
Swift
@objc func keyboardWillShow(notification: NSNotification)
-
Undocumented
Declaration
Swift
@objc func keyboardWillHide(notification: NSNotification)
-
Undocumented
Declaration
Swift
func showPlace(place : GRPlace)
-
Undocumented
Declaration
Swift
func numberOfSegmentsInSegmentedControl(_ segmentedControl: SJFluidSegmentedControl) -> Int
-
Undocumented
Declaration
Swift
func segmentedControl(_ segmentedControl: SJFluidSegmentedControl, titleForSegmentAtIndex index: Int) -> String?
-
Undocumented
Declaration
Swift
func segmentedControl(_ segmentedControl: SJFluidSegmentedControl, didChangeFromSegmentAtIndex fromIndex: Int, toSegmentAtIndex toIndex: Int)
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
-
Undocumented
Declaration
Swift
func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool)
-
set the selection of
selectedPlaceTypeTemp
to GRNearByPlaceManger(PlaceType)SelectedSubType
Declaration
Swift
func setSubTypeSelection()
-
reset the selection of GRNearByPlaceManger
(PlaceType)SelectedSubType
toselectedPlaceTypeTemp
Declaration
Swift
func resetSubTypeSelection()
-
Undocumented
Declaration
Swift
@IBAction func searchOnMap(_ sender: UIButton)
-
Undocumented
Declaration
Swift
@IBAction func selectSubCat(_ sender: UIButton)
-
Undocumented
Declaration
Swift
@IBAction func doneSubCat(_ sender: UIButton)
-
Undocumented
Declaration
Swift
@IBAction func hidePopUpView(_ sender: UIButton)