Skip to content

Instantly share code, notes, and snippets.

You're about to start a library or open-source thing that you want to be available to any iOS project. This is a handy guide for how to get set up.

#Setup

  1. start a new Xcode project with "Empty Application"
  2. project settings: verify name, devices (probably want Universal), Core Data (probably not), ARC (probably)
  3. choose location, don't add to any workspace or project.

Ok, project exists. What now? Let's rip out all that boilerplate Xcode so graciously gave us.

@spilliams
spilliams / xy.rb
Created June 27, 2014 17:35
spits out xy coordinates of points on a circle given its properties
# simple ruby script to spit out x,y coords of points on a circle given properties
require "highline/import"
radius = Float(ask "radius? ")
originX = Float(ask "X coord of center? ")
originY = Float(ask "Y coord of center? ")
minTheta = Float(ask "minTheta (deg)? ") * Math::PI/180
maxTheta = Float(ask "maxTheta (deg)? ") * Math::PI/180
dTheta = Float(ask "dTheta (rad)? ") * Math::PI/180

Keybase proof

I hereby claim:

  • I am spilliams on github.
  • I am spilliams (https://keybase.io/spilliams) on keybase.
  • I have a public key ASC-nLvw0qxmNspUoeU6mbw2vV9bR5UCHGEA1agrDefGQwo

To claim this, I am signing this object: