CareKit
CareKit copied to clipboard
Accessing the UIImage of detailsView
Wondering how to access the UIImage view of the detailsView in the detailsViewController. The instantiateDetailViewController only carries over the text of the tasks.
You can access the image view on an OCKDetailViewController
like this
let detailViewController: OCKDetailViewController = // ...
detailViewController.detailView.imageView.image = UIImage(named: "my-image")
Hey @erik-apple Please show the complete sample code of imageview, how to initialize the imageview code.
@UmairShams Do you still need guidance? I'm not sure what you are asking for specifically.