mutualmobile / MMProgressHUD

An easy-to-use HUD interface with personality.
MIT License
705 stars 131 forks source link

MMHud.m:109:27: No visible @interface for 'NSString' declares the selector 'sizeWithAttributes:' #24

Closed blmyself closed 10 years ago

blmyself commented 10 years ago

when i build in ios 6.1sdk qq20140330-1

dev4dev commented 10 years ago

Just don't build on 6.1, 'cause it even wont be accepted in AppStore. Switch to 7+

larsacus commented 10 years ago

What version of Xcode are you using?

dev4dev commented 10 years ago

The latest one - 5.1. And you error 100% depends on SDK version, because sizeWithAttributes: was introduced in SDK 7.0.

larsacus commented 10 years ago

It's definitely been deprecated since 6.x (thus the code path switching in the screenshot). What I'm surprised about is that it's already removed in 7.1...

larsacus commented 10 years ago

Reverse that. Not deprecated.

larsacus commented 10 years ago

I've decided after looking at this that I will not be fixing this issue. If I begin to fix this issue with macro compile-time guards, then I will have to add them for the entire library for instances in which I am using new (at this moment) iOS 7 APIs when a user is not using the iOS 7 SDK.