Skip to content

Commit

Permalink
format cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasMizera committed Oct 31, 2023
1 parent 30ca318 commit 411d129
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions app/ios/iosinterface.mm
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ +( void )showImagePicker:( int )sourceType : ( IOSImagePicker * )handler
NSString *alertOkButtonText = @"Ok";

UIAlertController *alertController = [UIAlertController alertControllerWithTitle:alertTitle
message:alertMessage
preferredStyle:UIAlertControllerStyleAlert];
message:alertMessage
preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *actionOk = [UIAlertAction actionWithTitle:alertOkButtonText
style:UIAlertActionStyleDefault
handler:nil]; //You can use a block here to handle a press on this button
style:UIAlertActionStyleDefault
handler:nil]; //You can use a block here to handle a press on this button
[alertController addAction:actionOk];
[rootViewController presentViewController:alertController animated:YES completion:nil];
}
Expand All @@ -201,11 +201,11 @@ +( void )showImagePicker:( int )sourceType : ( IOSImagePicker * )handler
delegate = [[IOSViewDelegate alloc] initWithHandler:handler];

[[NSNotificationCenter defaultCenter] addObserverForName:@"_UIImagePickerControllerUserDidCaptureItem" object:nil queue:nil usingBlock: ^ ( NSNotification * _Nonnull notification )
{
Q_UNUSED( notification )
// Fetch GPS data when an image is captured
mGpsData = getGPSData( delegate->handler->positionKit(), delegate->handler->compass() );
}];
{
Q_UNUSED( notification )
// Fetch GPS data when an image is captured
mGpsData = getGPSData( delegate->handler->positionKit(), delegate->handler->compass() );
}];

// Confirm event
delegate->imagePickerControllerDidFinishPickingMediaWithInfo = ^( UIImagePickerController * picker, NSDictionary * info )
Expand Down
4 changes: 2 additions & 2 deletions app/ios/iosviewdelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
* View controller for iOSImagePicker
*/
@interface IOSViewDelegate : NSObject<UIImagePickerControllerDelegate,
UINavigationControllerDelegate>
UINavigationControllerDelegate>
{
@public
@public

IOSImagePicker *handler;
BOOL processingPicture;
Expand Down

1 comment on commit 411d129

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 23.10.477111 just submitted!

Please sign in to comment.