LocationShareModel.m 550 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // LocationShareModel.m
  3. // Location
  4. //
  5. // Created by Rick
  6. // Copyright (c) 2014 Location. All rights reserved.
  7. //
  8. #import "LocationShareModel.h"
  9. @implementation LocationShareModel
  10. //Class method to make sure the share model is synch across the app
  11. + (id)sharedModel
  12. {
  13. static id sharedMyModel = nil;
  14. static dispatch_once_t onceToken;
  15. dispatch_once(&onceToken, ^{
  16. sharedMyModel = [[self alloc] init];
  17. });
  18. return sharedMyModel;
  19. }
  20. - (id)init {
  21. if (self = [super init]) {
  22. }
  23. return self;
  24. }
  25. @end