Connect a slider to control zoom on iOS Camera App - cocoa-touch

I am learning Xcode and am playing around with the SquareCam sample code app that Apple provides.
What I want to do is to be able to zoom in and out of the image with a slider object rather than the gesture.
How can I do this? Thank you!

Related

SwiperJS - Pinch zoom not zooming in correct pinched area

When I pinch zoom on an image, it does not zoom in on the area where I pinched.
It does not center on the part between the two fingers.
Site to try it out: https://swiperjs.com/demos#zoom
Tested the demo site on an iPhone in Safari and integrated a Swiper Component in an Ionic Capacitor App I'm building.
Any ideas to fix this? Or is there configuration I missed?
Best regards,
Peter

Got blue camera screen with CaptureMedia on UWP

I got blue preview screen when start camera many time on UWP. I used MediaCapture and CaptureElement to implement camera screen. Do you guys have any experience with this issue, please help me.
Thanks you so much!
I found the solution. This issue happens because of device rotates many times when close-reopen camera screens continuously. I fixed it by change camera's initialization orientation to Portrait as same as application's.

Open the iPhone camera?

We need to open the iPhone camera, to take images that will be saved to the camera roll.
I have read many examples here that all of them opens the UIImagePickerView.
Besides the fact that i cant understand why i have to open the picker view in order to open the camera , i just can't do that- i dont want the picker view, because i have my costumed photo album that we build, and we just need to have a little button in it, that opens the camera to take an image . without opening any other views above it .
Is that possible to use the camera without this pickerview that will cover my scene ?
or can i lead the user to the camera app and than take him back to my app ?
Thanks.
Instead of high level (i.e. Apple supplies the UI element) classes, you have to go to a more foundational (lower) level of API's, which would be AVCaptureDevice and AVCaptureDeviceInput.
And Apple has some nice source code available in their AVCam project.
If you want to display camera stream in you app without UIImagePickerController than you should you AVFoundation framework.
Here some some examples and tutorials:
take-photos-with AVFoundation
Custom camera
Displaying camera

Zooming in image using scrollview Xcode

I am trying an iPad application using Xcode. I am just a beginner so there are things I don't know how to do. In my app, I have some images showing one by one by scrollview. Now, I want them to zoom in when double tap and zoom out when double tap again. Can anyone tell me how to zoom in and out using the same scrollview which is used to display all the images?
Thanks. :)
Please Refer the Apple Documents... Scroll View Programming Guide for iOS

Play video as background in iPad App

I have an app and it has a static uimage as the background. To dress up the app, I have a video that would be great as the background but I cannot find any examples of how to play a video as a background view. I have looked at MPMoviePlayerController but I am not sure if it would do what I am expecting.
Anyone have any ideas, or an example of a video as a background to an app?
Thanks
I guess you could just use the MPMoviePlayerController, if you don't do it fullscreen (which is not possible on the iPhone, but it is so on the iPad).
Then you can just put buttons, labels whatever you want on top of that.
Should work fine :)