Latest 0.0.1
Homepage https://github.com/NZN/NZLabel
License MIT
Platforms ios 5.0, requires ARC
Authors

NZLabel License MIT

UILabel with multiple fonts and colors.

NZLabel

Build Status
Cocoapods
Cocoapods
Analytics

Requirements

NZLabel works on iOS 5.0+ version and is compatible with ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates:

  • Foundation.framework
  • UIKit.framework

You will need LLVM 3.0 or later in order to build NZLabel.

Adding NZLabel to your project

Cocoapods

CocoaPods is the recommended way to add NZLabel to your project.

  • Add a pod entry for NZLabel to your Podfile pod 'NZLabel', '~> 0.0.1'
  • Install the pod(s) by running pod install.

Source files

Alternatively you can directly add source files to your project.

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Open your project in Xcode, then drag and drop all files at NZLabel folder onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.

Usage

#import "NZLabel.h"
...
UIFont *boldFont = [UIFont fontWithName:@"Helvetica-Bold" size:17];
UIColor *blackColor = [UIColor blackColor];
NSString *loren = @"Lorem";
NSString *ipsum = @"ipsum";

[self.labelBlack setBoldFontToString:loren];

[self.labelBlue setFontColor:blackColor string:ipsum];

[self.labelGreen setFont:boldFont string:ipsum];
[self.labelGreen setFontColor:blackColor string:ipsum];

License

This code is distributed under the terms and conditions of the MIT license.

Change-log

A brief summary of each NZLabel release can be found on the wiki.

Latest podspec

{
    "name": "NZLabel",
    "version": "0.0.1",
    "license": "MIT",
    "summary": "UILabel with multiple fonts and colors.",
    "homepage": "https://github.com/NZN/NZLabel",
    "requires_arc": true,
    "platforms": {
        "ios": "5.0"
    },
    "authors": {
        "Bruno Tortato Furtado": "[email protected]"
    },
    "source_files": "NZLabel/*.{h,m}",
    "source": {
        "git": "https://github.com/NZN/NZLabel.git",
        "tag": "0.0.1"
    }
}

Pin It on Pinterest

Share This