1

In my app i have UIScrollview and multiple uiimageviews inside it, here i have done this all, i want to allow user to rearrange the uiimageviews around uiscrollview. i.e LIKE GALLERY VIEW IN ANDROID. What is the best way to do this. Here is the code how im adding uiimageview to scrollview

UIGraphicsBeginImageContext(myview.frame.size);
CGContextRef context = UIGraphicsGetCurrentContext();

[myview.layer renderInContext:context];

UIImage *screenShot = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext(); 


myimageview.image=screenShot;

[myscrollview addSubview:myimageview];
Harish
  • 2,496
  • 4
  • 24
  • 48
  • what's going on in that last line there, you seem to be calling a method `myimageview` on `myscrollview`? – yfrancis Nov 02 '12 at 06:39
  • check out the answers posted for this question http://stackoverflow.com/questions/1481826/dragging-an-uiview-inside-uiscrollview?rq=1 – yfrancis Nov 02 '12 at 06:45
  • 1
    myscrollview.canCancelContentTouches=NO; [myimageview setExclusiveTouch:YES]; i have done this but not working – Harish Nov 02 '12 at 07:00

0 Answers0