UIImage
動的に追加して移動しUIView
ています。下部にも4つのボタンがあります。
画像として保存したいのですがUIView
、保存中にボタンを保存したくないので、ボタンの後ろに追加しUIView
たいと思います。UIImageView
スクリーンショットコード
UIGraphicsBeginImageContext(self.view.frame.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
UIImageViewの追加
UIImage* image = [UIImage imageNamed:[NSString stringWithFormat:@"lam.jpg"]];
CGRect cellRectangle;
cellRectangle = CGRectMake(20 ,50,image.size.width/6 ,image.size.height/6 );
//[[self view] addSubview:blockView];
UIImageView *dragger = [[Draggable alloc] initWithFrame:cellRectangle];
[dragger setImage:image];
[dragger setUserInteractionEnabled:YES];
[self.view addSubview:dragger];
このように画像として保存UIView
しましたが、ボタンを保存したくありません。私も別のものを使用しましUIView
たが、画面全体で画像をドラッグしたいのですが、それが私の制限です。みんなが私が欲しいものを手に入れたことを願っています。