CareKit icon indicating copy to clipboard operation
CareKit copied to clipboard

Accessing the UIImage of detailsView

Open ekhall opened this issue 4 years ago • 3 comments

Wondering how to access the UIImage view of the detailsView in the detailsViewController. The instantiateDetailViewController only carries over the text of the tasks.

ekhall avatar May 19 '20 18:05 ekhall

You can access the image view on an OCKDetailViewController like this

let detailViewController: OCKDetailViewController = // ...

detailViewController.detailView.imageView.image = UIImage(named: "my-image")

erik-apple avatar May 21 '20 16:05 erik-apple

Hey @erik-apple Please show the complete sample code of imageview, how to initialize the imageview code.

umair-shams avatar Jul 06 '20 15:07 umair-shams

@UmairShams Do you still need guidance? I'm not sure what you are asking for specifically.

erik-apple avatar Aug 21 '20 22:08 erik-apple