Moving this to:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Appearance Properties | |
Link:iPhoneOS.platform zorn$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers | |
Link:Headers zorn$ grep -H UI_APPEARANCE_SELECTOR ./* | sed 's/ __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0) UI_APPEARANCE_SELECTOR;//' | |
./UIActivityIndicatorView.h:@property (readwrite, nonatomic, retain) UIColor *color NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; | |
./UIAppearance.h:/* To participate in the appearance proxy API, tag your appearance property selectors in your header with UI_APPEARANCE_SELECTOR. | |
./UIAppearance.h:#define UI_APPEARANCE_SELECTOR __attribute__((annotate("ui_appearance_selector"))) | |
./UIBarButtonItem.h:- (void)setBackgroundImage:(UIImage *)backgroundImage forState:(UIControlState)state barMetrics:(UIBarMetrics)barMetrics NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Playground - noun: a place where people can play | |
import UIKit | |
let action1 = { | |
println("action1") | |
} | |
let action2 = { | |
println(2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"people" : [ | |
{ | |
"first_name" : "Malcolm", | |
"last_name" : "Reynolds" | |
}, | |
{ | |
"first_name" : "Zoe", | |
"last_name" : "Washburne" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
struct ShowdownDataLoader { | |
// So this is a simple function that should return a string from a file but it sucks. | |
// if feels way to verbose and I hate all the indentation. Please show me how I might | |
// be able to refactor it. | |
// Please be additive to the GIST with your suggestion so others can see the origianl. |
Thanks for email.
The Mac app should be optional. If it's not there you skip behavior, if it is there, you run behavior.
You shouldn't even need any special behavior if the app is running in a Development configuration, only a Release. There are no dSYMs to upload during Development.
And just to share while I have your ear, another reason I choose not to use Crashlytics is -- I want to pay for my services. I don't like paying via letting you snoop on my data and reselling it.
Thanks for hearing my feedback.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)presentAccountChooser | |
{ | |
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; | |
UINavigationController *navVC = [storyboard instantiateViewControllerWithIdentifier:@"AccountChooserViewControllerNavVC"]; | |
AccountChooserViewController *accountChooserVC = (AccountChooserViewController *)[navVC topViewController]; | |
accountChooserVC.accounts = [self.twitterStore systemTwitterAccounts]; | |
accountChooserVC.delegate = self; | |
NSLog(@"modalTransitionStyle %d", self.modalTransitionStyle); | |
navVC.modalTransitionStyle = UIModalTransitionStyleCoverVertical; | |
navVC.modalPresentationStyle = UIModalPresentationFullScreen; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Download all assets from https://developer.apple.com/wwdc/videos | |
// Warning: might take up a lot of disk space | |
NodeList.prototype.toArray = function () { | |
return Array.prototype.slice.call(this); | |
}; | |
[].concat.apply([], document.querySelectorAll("li.session").toArray().map(function(session){ | |
var sessionID = session.id.match(/^\d+/)[0]; | |
var title = session.querySelector(".title").innerText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Download all assets from https://developer.apple.com/wwdc/videos | |
// Warning: might take up a lot of disk space | |
NodeList.prototype.toArray = function () { | |
return Array.prototype.slice.call(this); | |
}; | |
[].concat.apply([], document.querySelectorAll("li.session").toArray().map(function(session){ | |
var sessionID = session.id.match(/^\d+/)[0]; | |
var title = session.querySelector(".title").innerText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (id)initWithBeer:(BHBeer *)beer | |
{ | |
NSAssert(beer != nil, @"beer is required"); | |
self = [super init]; | |
if (self) { | |
self.beer = beer; | |
} | |
return self; | |
} |