HomeLocationViewController.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // HomeLocationViewController.h
  3. // kneet
  4. //
  5. // Created by Jason Lee on 4/23/15.
  6. // Copyright (c) 2015 ntels. All rights reserved.
  7. //
  8. @import MapKit;
  9. #import "JDViewController.h"
  10. @class CustomTextField2;
  11. @class CustomLabel;
  12. @class CustomButton;
  13. @class CustomRadioButton;
  14. @class CustomRadioGroup;
  15. @class JDGeofenceAnnotation;
  16. @interface HomeLocationViewController : JDViewController {
  17. @protected
  18. UILongPressGestureRecognizer *_pressGesture;
  19. JDGeofenceAnnotation *_pinAnnotation;
  20. MKCircle *_pinCircle;
  21. BOOL _isEnableLocatonService;
  22. NSDictionary *_sensorInfo;
  23. BOOL _isRequestUserLocation;
  24. CustomRadioGroup *_rgroup;
  25. }
  26. #pragma mark - Properties
  27. @property (weak, nonatomic) IBOutlet CustomLabel *lblLocationDesc;
  28. @property (weak, nonatomic) IBOutlet MKMapView *mapView;
  29. @property (weak, nonatomic) IBOutlet CustomTextField2 *txtKeyword;
  30. @property (weak, nonatomic) IBOutlet CustomButton *btnCurrentLocation;
  31. @property (weak, nonatomic) IBOutlet CustomRadioButton *rdoRadius100;
  32. @property (weak, nonatomic) IBOutlet CustomRadioButton *rdoRadius300;
  33. @property (weak, nonatomic) IBOutlet CustomRadioButton *rdoRadius500;
  34. @property (weak, nonatomic) IBOutlet CustomRadioButton *rdoRadius1000;
  35. @property (weak, nonatomic) IBOutlet CustomButton *btnRegister;
  36. #pragma mark - Instance Methods
  37. - (void)addAnnotation:(id<MKAnnotation>)annotation;
  38. - (IBAction)btnCurrentLocationTouched:(id)sender;
  39. - (IBAction)btnSearchAddrTouched:(id)sender;
  40. - (IBAction)btnRegisterTouched:(id)sender;
  41. - (IBAction)btnRegisterLaterTouched:(id)sender;
  42. @end