Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block li-jun

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
li-jun / NSDictionary+XXXConvertValues.h
Created Feb 8, 2018 — forked from kristopherjohnson/NSDictionary+XXXConvertValues.h
Category on NSDictionary that will convert string values to numbers or vice versa. Useful for JSON deserialization.
View NSDictionary+XXXConvertValues.h
#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 Dec 14, 2017 — 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`
You can’t perform that action at this time.