I need to develop a utility screen, where user can take a photo, and crop out a square out of it. This would in turn would need to let the user to adjust the photo, by swiping, rotating & zooming in/out as needed.
I have been so far able to achieve zoom plus swipe. The complete code can be downloaded from the following drop box URL.
https://www.dropbox.com/s/fj3xr5z4l5lrpjz/SquareCapture.zip?dl=0
I need help on rotating, cant seem to get it working I have tried applying UIRotationGestureRecongizer
Related
I want to create a page with a big image as background and buttons that users can interact with.
So imagine I put a big image such as a piece of map into the screen, but I only show a corner of the map in the display. So if a user wants to see other parts of the map, they have to "scroll" and navigate to wherever they want.
Meanwhile I also want to put a button they can tap on, and that button should lead to a php webpage (in-app, not opening in safari or else) or information page about sites and buildings in this location.
I am a rookie and I haven't have any code written down yet. I am thinking about using UIScrollView and UIButton, but am I on the right direction? Any advice?
Thanks in advance!
First you need a way to pinch zoom the image. In this mode, you can drag the image in any direction that you want. A common method can be found here. A scroll view can only scroll horizontally or vertically but with that image zooming, each image can be zoomed in and then dragged to any direction you want. You can have a scroll view with only one image.
After you have the image zooming ready, all you need to do is to create a subview on your screen to cover part of the image view or scroll view, whatever you used.
I'm creating a WP7 application to crop photo, then add some effects and upload to server. I want when users choose which area of photo will be cropped, they can see the remain part.
I have my photo contained in a scrollviewer, so users can scroll to position they want, and crop the visible part of photo.
However, when scrolling in scrollviewer, the hidden part of photo is totally transparent, it make users hard to figure. I want users can view invisible part with opacity about 50%.
This image can explain more clear:
Is there a workaround or another control to solve this problem?
Thank you !
Rather than using cropping I'd try layering something over the top to create the semi-transparency.
Cropping means don't show this part of the image. It isn't just temporarily hiding it.
I have a UIView in which I get certain information about a user, wthin a bunch of textfields and a bunch of photos of him, if available.
No Im a bit limited here, so I must have a UIImage or UIImageView on my View (only the first half of my view, to display this images.
Up to now I have a array of this images in the background and as soon as the user swipe over the UIImageView, the image shows the next.
But it's ugly, becuase there is no real paging (you know, see the second image in pieces while you swipe, at the moment its only a UIMageView.Image = xxx and its ugly) and no zooming (zoom on click).
Any idea to solve this?
Use an UIScrollView and place all of the images in it (as UIImageViews).
In my iOS application, I've image view. I added pinch & zoon and move (left right top and left) functionality to it.
What I am looking is: I want to implement save functionality so that when I visit the same page again, it must show the same zoom scale and position of image. And later I must be able to zoom/move to different scale and save it.
I didn't understand which parameter do I've to save. so that I can retrieve it back.
Can any one give me some suggestion....?
This shouldn't bee too rough, I'm assuming your imageview is inside of a ScrollView (for all of its pinching and zooming help). If so you can simply store the contentOffset and contentScaleFactor when the user stops viewing the image, then reapply it when they view it again.
I am having a problem with my IOS app. In my app, I want my home page so-to-speak to be all one large image which people will click to get into various other screens. How do I set it so the image takes up the entire screen, and how do I find out the X/Y coordinates of where someone clicked?
For the image, you can use UIImageView class and set or initialize it to the size of your home screen.
For tap (click), you can use UITapGestureRecognizer class (see the link below)
http://developer.apple.com/library/ios/ipad/#documentation/uikit/reference/UITapGestureRecognizer_Class/Reference/Reference.html