yackle / CLImageEditor

MIT License
2.21k stars 573 forks source link

Is it possible to add fullsize imageview in self.view ? #126

Closed badalpub1991 closed 8 years ago

badalpub1991 commented 8 years ago

I want to set blur background related to image . so i need to add full size imageview on uiview. so is it possible to add fullsize imageview ?

yackle commented 8 years ago

I think it is possible by insertSubview:atIndex:

badalpub1991 commented 8 years ago

Thanks for Replay . I tried at each place but not able to added it. can you explain bit more ? In which method i have to insert subview ?

yackle commented 8 years ago

What have you tried?

badalpub1991 commented 8 years ago

I have tried this in view did load method .

_backimageview is my imageview.

_backimgvw.frame=CGRectMake(self.view.frame.origin.x, self.view.frame.origin.y, self.view.frame.size.width, self.view.frame.size.height); [self.view addSubview:_backimgvw]; _backimgvw.image=self.imageView.image; _backimgvw.backgroundColor=[UIColor redColor]; I have also tried with insertsubview at index also tried [self.view insertSubview:_backimgvw aboveSubview:self.imageView];

but not working.

yackle commented 8 years ago

What does self mean?

[editor.view insertSubview:_backimgvw atIndex:0];

it is working