How to make square overlay appear with touch? - ios

The app that I'm currently working on is supposed to overlay a square image. The square image would overlay on preview camera screen wherever the user touches the screen.
I'm having hard time figuring this out. Guidance would be really helpful.

Apple has sample code that overlays points of interest on top of the camera view.
They have another sample that overlays a square.

Related

Creating a 3D Border for an ImageView in iOS

I am working on an application which is used to change the orientation of the Image view and also provide a shadow to it. I have succeeded in that and the only obstacle remaining here is the fact that I have not been able to provide a 3D border to it as shown in this Image.
Look at the 3D border on the left and Bottom edge of this image view.
Please guide me to create this effect.
Thanks in advance.

how do i make image show up on screen when touched on screen?

I am making a game with corona sdk and I want that when someone touches and slide the screen a wood plank(image) is made till the point it is slided to(when he lets go off the screen)
please help
take a look at this question In Corona SDK, how do I limit the number of lines drawn to one?
it is almost what you want, but instead of line you need to draw image of wood.

How to dim/blur everything outside given rect in iOS?

I'm currently developing an iOS app that is using OCR.
Currently I'm using AVFoundation to preview the video from the camera (using Apples sample AVCam).
For a good user experience I want to lay out a rectangle in the preview layer. The image inside this rectangle will be the image parsed by the OCR engine. My problem is that I also would like to "dim" everything outside this rectangle and I'm currently out of ideas how to solve this. Does anybody know how to do this?
Edit
This is what I would like to accomplish (image taken from the app Horizon):
http://i.imgur.com/MuuJNS9.png
You can use two black images covering the top and bottom areas that you want to "dim", set the alpha of those images to a certain value, like 0.5.
Why not add a subview that covers the entire screen and set the background color to a semi transparent gray - your gray overlay?
And then add the image parsed by the OCR engine add a subview of this grayoverlay int the center of it

iOS Maps - Grid Overlay

I'm looking for a way to overlay the iOS maps with a grid. The complete earth needs to be divided into squares. The location of the user doesn't effect the placement of the squares (In other words; the squares are always placed the same. On every iPhone, no matter where the user is).
I Looked into MKOverlay, but I've never used this so it's very new to me. Also, when zooming in/out should effect the overlay. It's very important that the squares are always covering the same area on the map (For example; A square should be 100mx100m in real world, when you zoom out, the square should cover the same 100x100).
Is there anybody that can point me in the right direction?
Is it possible to draw the grid from een .xml? Example given; On .XML is holding all squares with their coordinates on the map. When the user loads the map, the 100 squares around the user are loaded.

Correcting an image orientation

I have an image that can be photographed on different orientations. My problem is after that the image was photographed I have to rotate it in an upright position. My initial plan was to put a marker on the upper left hand of the image, find its location, and rotate it. However if I take this approach, I have to study object/feature extraction. Is there any other simple solution to this problem? By the way, I need to make an iOS app out of it
Thanks in avance!

Resources