tl;dr I don’t like using storyboards in bigger projects (more than 4-5 screens). When I start a new project from scratch I ussualy do the steps from this tutorial. I won’t talk about the issues that storyboards have, but I will recommend this post for anyone interested in this topic. In this tutorial we are going to remove the storyboard…
Author Archive for Andrei Puni
Swift and Objective-C: Best Friends Forever?
This week, Jonathan Blocksom gave a talk at the Swift Language User Group (#SLUG) meetup. A seasoned industry veteran, Jonathan has the real world experience of adding Swift to a large consumer-facing app with millions of users. Swift was not designed in a vacuum; working with the rich history of Objective-C frameworks was a critical part of the design. His talk…

Drawing with Text
I started programming when I was 10 years old by reading and modifying simple programs that my older friends from high school wrote as homework. They were written in Pascal, a simple programming language designed in the end of the `60s, intended to teach students structured programming. After a couple of days of tinkering, I talked to my friend Sergiu…
Swift resources for Objective-C developers
Swift is a relatively simple language, switching from Objective-C to Swift will not take long. After you take a look at the syntax you will be able to write code in a flash. You might get confused in the beginning, with optionals and type inference but soon you will start feeling the power they give you. We are really excited…
Object Oriented Programming in Swift
Most of Apple’s frameworks have a object-oriented architecture. Before you start digging into iOS/MacOS development you should first understand object oriented programming and design patterns. In this article we will go through the basic notions and design patterns in order to get you started with app development. Overview Object-oriented programming (OOP) is a programming paradigm that represents the concept of…

Random Pi
tl;dr I’m going to show you a little trick that uses random numbers to approximate the value of Pi. Monte Carlo methods (or Monte Carlo experiments) are a broad class of computational algorithms that rely on repeated random sampling to obtain numerical results; typically one runs simulations many times over in order to obtain the distribution of an unknown probabilistic…
Swift + Objc = Magic
Swift is fun and cool, but Objc is a tank. Here is my favorite hack in objc adapted to swift. After about two years of iOS development I really got tired of integrating web services into my application. If a login request succedes it would return something similar to this response: { “status” : “success”, “user” : { “first_name” :…
Swift Learning Resources
Articles and Tutorials Wayne Bishop has written a awesome guide to the most common data structures and algorithms used – full code. Big O notation Sorting Linked Lists Generics Binary Search Trees Stacks & Queues Graph Algorithms Shortest Paths and traversals Heaps Make an Awesome Video Background View Using UIWebView (Objective-C & Swift) Jameson Quave Taking control of the iPhone…
Playing with Strings
Combining strings let aString = “Hello” // Let’s play with strings today // we can combine strings using the + operator let newString = aString + ” swift lovers” // “Hello swift lovers” // string interpolaton can also be used to combine strings let a = “BAT” let b = “MAN” println(“\(a) + \(b) = \(a + b)”) // BAT…
Swift Thinking – Operator Overloading & JSON Parsing
This past Thursday, Keith Smiley gave the second talk of the Swift Language User Group (#SLUG) in Thoughtbot’s San Francisco office. He began his talk with an introduction and a very brief recap of the previous SLUG talk before focusing on a couple of key features in Swift. This talk is currently discussed on Hacker News. You can find an overview of…