UITextView lineBreakMode doesn't work after setting exceptionsPaths

I have a UITextView, contain texts (very long) and several UIImageViews. Each imageView can be moved / rotated / resized. All text in this UITextView line break mode NSLineBreakByWordWrapping


Before inserting images, text break mode works fine.
After inserting the image / images, move / rotate / resize the image, I will reload the exclusionPath, but this time the line break mode is not working. When the image is closer to the left or right side, it will separate the text character by character rather than word for word.
I have tried many methods that have not been fixed yet. I checked the Apple demo, they have this problem too.
Who can help?

+3


source to share





All Articles