Tag Archive for swift

NSTimer in Swift

In this tutorial we are going to learn to control time We are going to do that by making a binary counter using NSTimer in Swift. The final result will look like this: You can get the full code here. First let’s look a bit a the pieces that we are going to use. NSTimer Basically a timer executes some…

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading...

Birds, Cats and Dogs

We are going to make an app that stores and displays races of birds, cats and dogs. We are going to use UITableViewto show the list of species and races, NSUserDefaults for data persistence and UIWebView to get more information about each race on Wikipedia. Step 1: Create a new project Open Xcode and create a new iOS project using…

1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 3.50 out of 5)
Loading...

Introduction To SceneKit – Part 2

In this tutorial we’ll be looking at the various types of primitives you can use with SceneKit. We’ll look at how we can position objects in 3D space and ways of animating the positions of objects via actions. Here’s a SceneKit starter project with an empty scene to help you follow along. Geometries in SceneKit are instances of the SCNGeometry class. Geometries provide the…

1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 3.00 out of 5)
Loading...

How to remove storyboards from your project

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…

1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 3.00 out of 5)
Loading...

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…

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 2.67 out of 5)
Loading...

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…

1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 4.00 out of 5)
Loading...

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…

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.50 out of 5)
Loading...

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…

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

One month of Swift

    It’s been an amazing month since Apple announced Swift, at WWDC 2014. Since then we saw a lot of enthusiasm among developers all over the world, writing hundreds of blog posts and discussing on Reddit and Twitter. A bit over 100.000 people visited We ❤ Swift. We are really excited to see the massive number of people interested in learning Swift in just one…

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading...

How to make a custom keyboard in iOS 8 using Swift

tl;dr I will go over the basics of a Keyboard Extension and then make a morse code keyboard using the new Application Extension API in iOS 8. It should take you about 20 minutes to go through all the steps. full code Overview A custom keyboard replaces the system keyboard for users who want capabilities such as a novel text input…

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.50 out of 5)
Loading...
Subscribe
We send about one email per week with our latest tutorials and updates
Never display this again :)