I have a custom view. I capture the screenshot of view and use image in NSTextAttachment as :
UIImage *image = view.image;
NSTextAttachment *attachment = [NSTextAttachment new];
attachment.image = image;
I then create a mutable Attributed string with this attachment as:
NSAttributedString *attrStr = [NSAttributedString attributedStringWithAttachment:attachment];
This code is looped for all views and one final attributed string is created by appending all attrStr's as:
[mutableString beginEditing];
[mutableString appendAttributedString:attrStr];
[mutableString endEditing];
This is then set to UILabel attributed text.
Problem : I want voice over to iterate through individual images in attributed text. So that each image is in focus by voice over.
Thanks !!