ios - Strange error writing text to CGContext -


I am trying to write a CGContext text using this code

  NSString * text = NSLocalizedString (@ "Mytext", zero); NSDictionary * atributes = @ {NSFontAttributeName: @ "Helvetica Neu Bold", NSIAForFolder Attribute Name: [UIColor blackcolor]}; [Text drawAtPoint: CGPointMake (x1, y2) withAttributes: attributes];  

but I am seeing this error

Exclude the application due to exception exceptions' NSInvalidArgumentException ', Reason:' - [__nxststant string Point size]: Example sent to unknown selector 0x1001dfd40

Any clues?

set NSFontAttributeName for the UIFont object.

  NSString * text = NSLocalizedString (@ "myText", zero); NSDictionary * atributes = @ {NSFontAttributeName: [UIFont fontWithName: @ "Hewlettia New Bold" Size: 17.0], NSIIFFold Entrant Name: [UIColor blackColor]}; [Text drawAtPoint: CGPointMake (x1, y2) withAttributes: attributes];  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -