chrismiles / CMPopTipView

Custom UIView for iOS that pops up an animated "bubble" pointing at a button or other view. Useful for popup tips.
https://github.com/chrismiles/CMPopTipView
MIT License
2.73k stars 467 forks source link

Word wrap not working #92

Open mworsnop opened 9 years ago

mworsnop commented 9 years ago

I am not using ARC as my app is huge and haven't figured out how to convert everything, So I am using 1.3 of CMPopTip.

The demo app works fine.

I copied sections of the demo into my app and the text does not word wrap. It seems to be 1 line short. So in other words if it needed 3 lines, it only shows 2.

Any ideas?

chrismiles commented 9 years ago

I would guess height calculations are off, the last line isn't fitting so is being truncated?

Note that you can opt-in to ARC for selected files only. That may be easier for you so you can add the latest version.

mworsnop commented 9 years ago

Having ARC on selected files would be great. I haven’t seen anything that says how to do that? Would you mind pointing me in the right direction?  THANK YOU

On February 27, 2015 at 1:16:33 PM, Chris Miles (notifications@github.com) wrote:

I would guess height calculations are off, the last line isn't fitting so is being truncated?

Note that you can opt-in to ARC for selected files only. That may be easier for you so you can add the latest version.

— Reply to this email directly or view it on GitHub.

mworsnop commented 9 years ago

I found -fno-objc-arc so disabled everything except the new stuff.  This is great maybe I can get my code updated to ARC one at a time!  On February 27, 2015 at 2:22:42 PM, Mark Worsnop (mark@worsnop.com) wrote:

Having ARC on selected files would be great. I haven’t seen anything that says how to do that? Would you mind pointing me in the right direction?  THANK YOU

On February 27, 2015 at 1:16:33 PM, Chris Miles (notifications@github.com) wrote:

I would guess height calculations are off, the last line isn't fitting so is being truncated?

Note that you can opt-in to ARC for selected files only. That may be easier for you so you can add the latest version.

— Reply to this email directly or view it on GitHub.

mworsnop commented 9 years ago

Thank you again the ARC version works great! Have a great day and thanks for some cool code!

On February 27, 2015 at 2:31:31 PM, Mark Worsnop (mark@worsnop.com) wrote: I found -fno-objc-arc so disabled everything except the new stuff.  This is great maybe I can get my code updated to ARC one at a time!  On February 27, 2015 at 2:22:42 PM, Mark Worsnop (mark@worsnop.com) wrote:

Having ARC on selected files would be great. I haven’t seen anything that says how to do that? Would you mind pointing me in the right direction?  THANK YOU

On February 27, 2015 at 1:16:33 PM, Chris Miles (notifications@github.com) wrote:

I would guess height calculations are off, the last line isn't fitting so is being truncated?

Note that you can opt-in to ARC for selected files only. That may be easier for you so you can add the latest version.

— Reply to this email directly or view it on GitHub.