soffes / SAMTextView

Add a placeholder to UITextView.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crash in placeHolderRectForBounds

ohayon opened this issue · comments

just updated to master and when setting a placeholder, if (self.typingAttributes) seems to be causing the crash.

Can you provide code to reproduce this? Are you running on < iOS 6?

Hi Sam,

I am having the same issue.
I have made a simple test app to show case the crash. If you could please have a look I would much appreciate.
I have tested it on the simulator for iOS 6.0, iOS 6.1 and iOS 7.0. It crashes on iOS 6.0 and 6.1 simulator.
On iOS 7.0 simulator it works fine.
https://github.com/aaadonai/MySAMTextViewApp
ps.: Let me know if you want to use my test as a Demo to the project and I will send you a PullRequest.

Cheers,
Antonio

check my solution at #11

@alvinhu Thanks it worked like a treat

This fix is in version 0.2.1