RaviG
RaviG

Reputation: 163

How to find the name/title of a UIImage in swift?

please help to find out the image name which is stored in Photo Library of a Phone.

This is the code I have tried:

    let x = self.imageView.accessibilityLabel
    println(x)

Upvotes: 2

Views: 4583

Answers (1)

William Smith
William Smith

Reputation: 1959

Unfortunately, that functionality is not built into UIImage because images are not always loaded from files. However, you could create a custom UIImageView subclass to fit your needs.

Upvotes: 1

Related Questions