Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to change only image of ToCropView #115

Closed
NiteshKhandal opened this issue Jul 6, 2016 · 4 comments
Closed

to change only image of ToCropView #115

NiteshKhandal opened this issue Jul 6, 2016 · 4 comments
Labels

Comments

@NiteshKhandal
Copy link

NiteshKhandal commented Jul 6, 2016

i create ToCropView like:

    self.cropView = TOCropView()
    self.cropView = TOCropView(image: Image)
    self.cropView.frame = CGRectMake(35, cropView_Y, cropView_Width, cropView_Height)
    self.cropView.backgroundColor = UIColor.clearColor()
    self.view.addSubview(self.cropView)

but i want to change the image of cropView on the tap CollectionView Cell then how do i change image of ToCropView and also i tap again and again.

my screen look like as below link:

simulator screen shot 30-jun-2016 3 46 29 pm

here i have to change image of my cropView when user tap on image shown below in the screen.

@TimOliver
Copy link
Owner

Oh dear! Okay, I see what you're trying to do now.

I never designed TOCropView to allow its image to be switched (I didn't really even intend for it to be used outside of the TOCropViewController class!) so as far as I know, it can't handle that.

Probably the quickest and easiest thing to do is to create a new TOCropView from scratch whenever the user taps a new image in the collection view. Since this is a user initiated action, this isn't a bad compromise and there shouldn't be any visible performance hits.

Beyond that, it would be necessary to add the image-swapping functionality to TOCropView itself.

@TimOliver
Copy link
Owner

I'm going to close this issue now. Feel free to re-open it if you need additional help. :)

@NiteshKhandal
Copy link
Author

ok , no problem i have solved my issue... :)

@techoutliers
Copy link

@NiteshKhandal Is it possible to share how you solved your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants