Skip to content
Snippets Groups Projects
Commit 3f98df4e authored by Maxime Graulich's avatar Maxime Graulich
Browse files

iOS: Show/Hide progress

parent cc6d3edf
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
_runStopButton.frame = CGRectMake(self.view.frame.size.width - _runStopButton.frame.size.width - 7, 50, _runStopButton.frame.size.width, _runStopButton.frame.size.height ); _runStopButton.frame = CGRectMake(self.view.frame.size.width - _runStopButton.frame.size.width - 7, 50, _runStopButton.frame.size.width, _runStopButton.frame.size.height );
_progressLabel.frame = CGRectMake(50, self.view.frame.size.height - 25, _progressLabel.frame.size.width, _progressLabel.frame.size.height); _progressLabel.frame = CGRectMake(50, self.view.frame.size.height - 25, _progressLabel.frame.size.width, _progressLabel.frame.size.height);
_progressIndicator.frame = CGRectMake(20, self.view.frame.size.height - 25, _progressIndicator.frame.size.width, _progressIndicator.frame.size.height); _progressIndicator.frame = CGRectMake(20, self.view.frame.size.height - 25, _progressIndicator.frame.size.width, _progressIndicator.frame.size.height);
[_progressIndicator addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleProgressIndicatorTap:)]];
[_progressLabel setHidden:YES]; [_progressLabel setHidden:YES];
[_progressIndicator setHidden:YES]; [_progressIndicator setHidden:YES];
if(self.initialModel != nil){ if(self.initialModel != nil){
...@@ -286,6 +287,10 @@ void messageFromCpp (void *self, std::string level, std::string msg) ...@@ -286,6 +287,10 @@ void messageFromCpp (void *self, std::string level, std::string msg)
{ {
[_progressLabel setText:progress]; [_progressLabel setText:progress];
} }
-(void)handleProgressIndicatorTap:(id)sender
{
[_progressLabel setHidden:!_progressLabel.hidden];
}
void getBitmap(void *self, const char *text, int textsize, unsigned char **map, int *height, int *width, int *realWidth) void getBitmap(void *self, const char *text, int textsize, unsigned char **map, int *height, int *width, int *realWidth)
{ {
[(__bridge id)self getBitmapFromStringObjC:text withTextSize:textsize inMap:map inHeight:height inWidth:width inRealWidth:realWidth]; [(__bridge id)self getBitmapFromStringObjC:text withTextSize:textsize inMap:map inHeight:height inWidth:width inRealWidth:realWidth];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment