Skip to content
forked from ekscrypto/Base64

Objective-C Base64 Additions for NSData and NSString

Notifications You must be signed in to change notification settings

soheilbm/Base64

 
 

Repository files navigation

CI Status CocoaPods Compatible Carthage compatible

Base64 Additions for Objective-C on Mac OS X and iOS

Installation

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Firebase into your Xcode project using Carthage, specify it in your Cartfile:

github "ekscrypto/Base64" 

Run carthage update to build the framework and drag the built Firebase.framework into your Xcode project.

Cococapods

Add the following line to your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'Base64'
end

Usage

Open the Xcode project file, and drag MF_Base64Additions.m/.h into your project.

In files where you want to use Base64 encoding/decoding, simply include the header file and use one of the provided NSData or NSString additions.

Example use: #import "MF_Base64Additions.h"

NSString *helloWorld = @"Hello World";
NSString *helloInBase64 = [helloWorld base64String];
NSString *helloDecoded = [NSString stringFromBase64String:helloInBase64];

Performance

Requirements

  • Compile with Automatic Reference Counting
  • Compatible with Mac OSX 10.6+ and iOS 4.0+

Implementation

Licensing

  • Public Domain

About

Objective-C Base64 Additions for NSData and NSString

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 98.4%
  • Ruby 1.6%