Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions PRAR-Example/PRAR-Example/Main Views/ARView.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@

@interface ARView ()

/**
The PRAR manager that the view uses.
*/
@property (nonatomic) PRARManager *prarManager;

@end


Expand Down Expand Up @@ -83,21 +88,21 @@ - (void)prarGotProblem:(NSString*)problemOrigin withDetails:(NSString*)details {

-(void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[[PRARManager sharedManager] startARWithData:arData
forLocation:CLLocationCoordinate2DMake(currentLoc.coordinate.latitude,
currentLoc.coordinate.longitude)];

[self.prarManager startARWithData:arData
forLocation:CLLocationCoordinate2DMake(currentLoc.coordinate.latitude,
currentLoc.coordinate.longitude)];
}
-(void)viewWillDisappear:(BOOL)animated {
[[PRARManager sharedManager] stopAR];
[self.prarManager stopAR];

[super viewWillDisappear:animated];
}

-(void)viewDidLoad {
[super viewDidLoad];
[PRARManager sharedManagerWithRadarAndSize:self.view.frame.size andDelegate:self];

self.prarManager = [[PRARManager alloc] initWithSize:self.view.frame.size delegate:self showRadar:YES];
}


Expand Down