RKTabView icon indicating copy to clipboard operation
RKTabView copied to clipboard

Fix deprecated warnings

Open chu31g opened this issue 9 years ago • 3 comments

chu31g avatar Sep 15 '15 12:09 chu31g

It would be nice not to have warnings by integrating this library / pod ;-)

chu31g avatar Oct 07 '15 14:10 chu31g

Hi @chu31g.

Deployment target of demo project is 6.0. Target platform of the pod is 5.0. I'm currently using sizeWithFont: constrainedToSize:lineBreakMode: which is deprecated since 7.0 - that's right. You offer to use boundingRectWithSize(_:options:attributes:context:) method instead, but it was declared only in 7.0. It's fine for your project though, but it can break things for others. Rare occasion, but still.

I think respondsToSelector: checks should be applied for both sentences.

RafaelKayumov avatar Oct 07 '15 14:10 RafaelKayumov

If it's only about hiding warnings, you could try inhibit_warnings like shown here

RafaelKayumov avatar Oct 07 '15 15:10 RafaelKayumov