AliSoftware / OHAttributedLabel

UILabel that supports NSAttributedString
https://github.com/AliSoftware/OHAttributedLabel/wiki
1.51k stars 344 forks source link

renderInContext: get a unexpected result #146

Open nealsun opened 11 years ago

nealsun commented 11 years ago

I use OHAttributedLabel to render my text, then I snapshot the view to animate. The snapshot image is this: image But UILabel works correctly. Did I miss something?

AliSoftware commented 11 years ago

How do you do your snapshot? Does the BitmapContext you create for your snapshot has the right configuration (colorspace, numberOfComponents, …)?

AliSoftware commented 11 years ago

Is the issue still present if you use iOS7 new official methods -[UIView snapshotViewAfterScreenUpdates:] to provide a snapshot?