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

Error at OHAttributedLabel.h #95

Closed
VuTrongQuy opened this issue Nov 8, 2012 · 12 comments
Closed

Error at OHAttributedLabel.h #95

VuTrongQuy opened this issue Nov 8, 2012 · 12 comments

Comments

@VuTrongQuy
Copy link

typedef CF_OPTIONS(int32_t, OHBoldStyleTrait)
{
kOHBoldStyleTraitMask = 0x030000,
kOHBoldStyleTraitSetBold = 0x030000,
kOHBoldStyleTraitUnSetBold = 0x020000,
} ;

Error here,

@AliSoftware
Copy link
Owner

??? What error do you have? I don't have enough info to help you here…

Are you at least using the latest Xcode and LLVM compiler?

@AliSoftware
Copy link
Owner

Yes so that's what I suspected, your version of Xcode / LLVM is too old.

NS_OPTIONS and CF_OPTIONS macros are defined in the Objective-C Runtime headers, so if your compiler/Xcode can't find them it means your Xcode is not up-to-date.

I just did a commit to fix cases for old Xcode versions, so that should be compatible now.
But anyway, you should really update your Xcode version. The LLVM compiler is much better (detect more potential errors and warnings, optimize your code, etc) and is compatible with modern Objective-C and so on.

@VuTrongQuy
Copy link
Author

i use x-code 4.4.1 :)

@AliSoftware
Copy link
Owner

Then you should update to Xcode 4.5.2 ;)

@danielgindi
Copy link

Which is too old. Current version is 4.5.2.

נשלח מה-iPhone שלי

ב-8 בנוב 2012, בשעה 17:54, VuTrongQuy [email protected] כתב/ה:

i use x-code 4.4.1 :)


Reply to this email directly or view it on GitHub.

@VuTrongQuy
Copy link
Author

Ok, thanks 👍

@VuTrongQuy
Copy link
Author

Dear AliSoftware,
Why OHAttributedLabel not support number line of label ( in uitableviewcell ) > 1 ?

@AliSoftware
Copy link
Owner

#3

@VuTrongQuy
Copy link
Author

why u don't try upgrade ur code to support this.

@AliSoftware
Copy link
Owner

o_O You're kidding, right?
And why don't you do it yourself and post me a pull request when you're done?

  • I give this code for free to the community but that's not my job and I don't have time for everyone. Except if you consider paying me for this?
  • Did you even read the whole issue UILineBreakMode*Truncation modes (leading/trailing "…") and multiline #3, and all the details why this is a very very complex problem? Especially the whole explanations I give about CoreText not supporting this constraint natively?
  • There is already plenty of NSLog warnings printed in the console when you run your application and encounter this known issue, explain what is the problem, and quote the issue to have all the info… but I bet you didn't take time to read those warnings either?
  • As there is already a full discussion about it in the other issue UILineBreakMode*Truncation modes (leading/trailing "…") and multiline #3, why do you continue talking here about a completely different matter than the one you opened this issue Error at OHAttributedLabel.h #95 for?

And by the way, this issue is not the place to talk about this, as there is already a dedicated issue for that with the full discussion about all the aspects, so please don't mess with the GitHub issue system and mix different subjects in the same issue (that a hell for other users to follow .

@VuTrongQuy
Copy link
Author

Sr and thanks ur support. Close topic here 👍

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

No branches or pull requests

3 participants