By daveharry
on Thu, 02/27/2014 - 05:56
Hi, i just try the videoplayback sample. And i saw in some AR Apps that they have some like green line indicator going up and down when scan the target. I check the code in VideoPlaybackViewController.mm and have code like this:
CGRect mainBounds = [[UIScreen mainScreen] bounds]; CGRect indicatorBounds = CGRectMake(mainBounds.size.width / 2 - 12, mainBounds.size.height / 2 - 12, 24, 24); UIActivityIndicatorView *loadingIndicator = [[[UIActivityIndicatorView alloc] initWithFrame:indicatorBounds]autorelease]; loadingIndicator.tag = 1; loadingIndicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge; [eaglView addSubview:loadingIndicator]; [loadingIndicator startAnimating];
But when i run my project its not showing anything. Anybody have sucess implementing this activity indicator?
thanks...
ActivityIndicator not Showing
The scan lines are in the CloudReco / Books app, and chances are that you may need to do this in OpenGL.
ActivityIndicator not Showing
Hi Nalin, thanks..got the explanation from your answer on other question.
Regards,
Dave