Guest User

Untitled

a guest
May 20th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. -(IBAction) firstButton: (id) sender
  2. {
  3. //+ (UIFont *)fontWithName:(NSString *)fontName size: (CGFloat) fontSize
  4. UIFont *test = [UIFont fontWithName: @"Courier" size: 12];
  5. [firstLabel setFont: test];
  6. }
  7.  
  8. -(IBAction) firstButton: (id) sender
  9. {
  10. //- (UIFont *)fontWithSize:(CGFloat)fontSize
  11.  
  12. UIFont *font = [firstLabel font];
  13. [firstLabel setFont: [font fontWithSize: 15]];
  14. }
  15.  
  16. -(IBAction) firstButton: (id) sender
  17. {
  18. // + (UIFont *)systemFontOfSize:(CGFloat)fontSize
  19.  
  20. [firstLabel setFont: [UIFont systemFontOfSize: 15]];
  21.  
  22. }
  23.  
  24. -(IBAction) firstButton: (id) sender
  25. {
  26. // + (UIFont *)boldSystemFontOfSize:(CGFloat)fontSize
  27.  
  28. [firstLabel setFont: [UIFont boldSystemFontOfSize: 15]];
  29.  
  30. }
  31.  
  32.  
  33. -(IBAction) firstButton: (id) sender
  34. {
  35. // + (UIFont *)italicSystemFontOfSize:(CGFloat)fontSize
  36.  
  37. [firstLabel setFont: [UIFont italicSystemFontOfSize: 15]];
  38. }
  39.  
  40. -(IBAction) firstButton: (id) sender
  41. {
  42. // + (NSArray *)familyNames
  43. // - (NSString *)description
  44.  
  45. NSArray *collection = [UIFont familyNames];
  46. NSString *stringCollection = [collection description];
  47. [firstLabel setText: stringCollection];
  48. }
Add Comment
Please, Sign In to add comment