Skip to content

Instantly share code, notes, and snippets.

li-jun / NSDictionary+XXXConvertValues.h
Created February 8, 2018 07:45 — forked from kristopherjohnson/NSDictionary+XXXConvertValues.h
Category on NSDictionary that will convert string values to numbers or vice versa. Useful for JSON deserialization.
#import <Foundation/Foundation.h>
@interface NSDictionary (XXXConvertValues)
// Return value associated wth key, converted to NSString
- (NSString *) stringValueForKey:(id)key;
// Return integer value associated with key, converted to integer
- (NSInteger) integerValueForKey:(id)key;
li-jun /
Created December 14, 2017 11:13 — forked from sundeepgupta/
Script to create a universal or "fat" binary for an iOS framework.
# Adapted from
# and
# Create a new aggregate target.
# For the automatically generated scheme, change its build config to "release".
# Ensure this target's "product name" build setting matches the framework's.
# Add a run script with `source "${PROJECT_DIR}/path_to_this_script`