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

kCTLeftTextAlignment is deprecated in IOS 9 #594

Open
pangelovski opened this Issue Oct 6, 2015 · 4 comments

Comments

Projects
None yet
5 participants
@pangelovski
Copy link

pangelovski commented Oct 6, 2015

In the TTTAttributedLabel.m file, I am getting warning messages that the kCTLeftTextAlignment is deprecated.

if __IPHONE_OS_VERSION_MAX_ALLOWED >= 60000

switch (alignment) {
    case NSTextAlignmentLeft: return kCTLeftTextAlignment;
    case NSTextAlignmentCenter: return kCTCenterTextAlignment;
    case NSTextAlignmentRight: return kCTRightTextAlignment;
    default: return kCTNaturalTextAlignment;
}
@GoldenJoe

This comment has been minimized.

Copy link

GoldenJoe commented Oct 20, 2015

Looks like they should be:

kCTTextAlignmentLeft
kCTTextAlignmentCenter
kCTTextAlignmentRight
kCTTextAlignmentNatural

@aehlke

This comment has been minimized.

Copy link

aehlke commented Dec 6, 2015

Thanks @GoldenJoe !

@dillan

This comment has been minimized.

Copy link
Member

dillan commented Nov 17, 2016

@adonoho I believe you addressed this issue in [dbdbd0f].

@AnthonyMDev

This comment has been minimized.

Copy link

AnthonyMDev commented Mar 21, 2017

When trying to push a CocoaPod to the trunk that has a dependency on this pod, this deprecation is still causing errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.