Skip to content

Instantly share code, notes, and snippets.

View whynoceros's full-sized avatar

Gabe Nadel whynoceros

  • eBay
  • Portland, OR
View GitHub Profile
yah
@whynoceros
whynoceros / gist:e543dc9e8fd8ad01734f
Last active November 9, 2015 21:37
Fix for Build a Photo Browser iPhone App
Many students have recently run into problems with "Build a Photo Browser iPhone App" and this document will aim to expolain why this problem is occuring and how it can be fixed.
Background:
When the "Build a Photo Browser iPhone App" was first created there was no Swift, only Obj-C. Since then, Reactive Cocoa moved to become an all Swift Library (as of v4.0). This means that when you update your pods, you are now pulling a Swift Library into an Objective-C project. While you certainly can mix Obj-C and Swift, you need to take steps like bridging headers to get them to play nicely. While those are important skills to learn, this is not the best solution to this particular problem.
Solution:
The fastest solution to this problem is to update your podfile with:
pod 'ReactiveCocoa', '2.4.7'
pod 'SimpleAuth/Instagram', '0.3.6'
@whynoceros
whynoceros / gist:92a6bd7ff5da01f55324
Created October 21, 2015 22:20
Complete Orders for Gabe's KFC Example
NSArray *orderArray = @[ @(Soda), @(Sandwich), @(Sandwich), @(Bucket), @(FamilyDeal), @(Sandwich), @(DoubleTrouble), @(LonelyBird), @(DoubleTrouble), @(Soda),@(Soda), @(Sandwich), @(Sandwich), @(Bucket), @(FamilyDeal), @(Sandwich), @(DoubleTrouble), @(LonelyBird), @(DoubleTrouble), @(Soda),@(Soda), @(Sandwich), @(Sandwich), @(Bucket), @(FamilyDeal), @(Sandwich), @(DoubleTrouble), @(LonelyBird), @(DoubleTrouble), @(Soda),@(Soda), @(Sandwich), @(Sandwich), @(Bucket), @(FamilyDeal), @(Sandwich), @(DoubleTrouble), @(LonelyBird), @(DoubleTrouble), @(Soda),@(Soda), @(Sandwich), @(Sandwich), @(Bucket), @(FamilyDeal), @(Sandwich), @(DoubleTrouble), @(LonelyBird), @(DoubleTrouble), @(Soda),@(Soda), @(Sandwich), @(Sandwich), @(Bucket), @(FamilyDeal), @(Sandwich), @(DoubleTrouble), @(LonelyBird), @(DoubleTrouble), @(Soda),@(Soda), @(Sandwich), @(Sandwich), @(Bucket), @(FamilyDeal), @(Sandwich), @(DoubleTrouble), @(LonelyBird), @(DoubleTrouble), @(Soda),@(Soda), @(Sandwich), @(Sandwich), @(Bucket), @(FamilyDeal), @(Sandw