Skip to content

Instantly share code, notes, and snippets.

View yangmeyer's full-sized avatar

Yang Meyer yangmeyer

  • Indie Mac/iOS Developer & UX Designer
  • Frankfurt / Stockholm / NYC
View GitHub Profile
@yangmeyer
yangmeyer / NSMutableArray+YMYSorted.m
Last active August 29, 2015 14:04
NSMutableArray category for inserting objects into a sorted list
//
// Created by Yang Meyer on 01.08.14.
// Licensed as CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/)
//
// NSMutableArray+YMYSorted.h
// Gemba
#import <Foundation/Foundation.h>
@interface NSMutableArray (YMYSorted)
@yangmeyer
yangmeyer / NSObject+YMOptionsAndDefaults.h
Created October 8, 2012 14:37
Drop-in options/defaults support (NSObject category)
// Created by YangMeyer on 08.10.12.
// Copyright (c) 2012 Yang Meyer. All rights reserved.
#import <Foundation/Foundation.h>
@interface NSObject (YMOptionsAndDefaults)
- (void)ym_registerOptions:(NSDictionary *)options
defaults:(NSDictionary *)defaults;
@yangmeyer
yangmeyer / gist:3840022
Created October 5, 2012 14:17
Setting UIButton titleLabel shadow properties using UIAppearance
[[UIButton appearanceWhenContainedIn:[YMAboutBaseViewController class], nil]
setTitleColor:[UIColor darkGrayColor] forState:UIControlStateNormal];
[[UILabel appearanceWhenContainedIn:[UIButton class], [YMAboutBaseViewController class], nil]
setShadowColor:[UIColor clearColor]];