1

I am wondering if anyone has developed a "crop" style box that a user can interact with in iOS? Specifically, I am looking for something like:

http://img192.imageshack.us/img192/8930/customcropbox.jpg

but without the actual crop functionality.

Any assistance would be great.

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356

2 Answers2

0

somthing like below... try this way ..... u get the answer

 UIImage *logo_img = [UIImage imageNamed:@"google logo_transpar.png"];
UIImage *img_flag=[UIImage imageWithCGImage:CGImageCreateWithImageInRect([logo_img CGImage],CGRectMake(10, 10, 100, 100))];
UIImageWriteToSavedPhotosAlbum(img_flag, nil, nil, nil);
Nag_iphone
  • 967
  • 7
  • 22
  • How does this answer the question? Don't just post a block of code, at least explain what it does. The question is asking for an interactive box on the screen, where is that in here? – jrturton Dec 28 '11 at 08:52
  • Actually, I found an article referring to drawing a CGRect and attaching the TouchesBegin event which lead me to the answer on how to create this box as listed above. Feel free to PM me if you have a specific question. – Jeff Wheeler Dec 31 '11 at 05:36
0

Similar question to a couple of other threads:

iPhone - How do you make a resizable rectangle for cropping images?

Presenting an image cropping interface

Hope this was helpful.

Jeff it would also be useful/appreciated if you could link the article you found 'referring to drawing a CGRect and attaching the TouchesBegin event', which helped you create the box in the end.

Community
  • 1
  • 1
Pliskin
  • 1,259
  • 10
  • 11
  • I was actually able to find a solution for this problem. I ended up using a plain, transparent view with a border and shadow. Added some gestures to it and called it a day. – Jeff Wheeler Jan 30 '12 at 16:37