Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix deprecated method call warning on iOS7 #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

paulz
Copy link

@paulz paulz commented Jan 26, 2014

...Pods/MNMBottomPullToRefresh/MNMBottomPullToRefreshDemo/MNMBottomPullToRefresh/MNMBottomPullToRefreshView.m:156:48: warning: 'sizeWithFont:' is deprecated: first deprecated in iOS 7.0 - Use -sizeWithAttributes: [-Wdeprecated-declarations]
CGSize messageSize = [[messageLabel_ text] sizeWithFont:[messageLabel_ font]];
^
In module 'UIKit' imported from …/Pods/Pods-MNMBottomPullToRefresh-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStringDrawing.h:59:1: note: method 'sizeWithFont:' declared here

  • (CGSize)sizeWithFont:(UIFont *)font NS_DEPRECATED_IOS(2_0, 7_0, "Use -sizeWithAttributes:");
    ^
    1 warning generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant