Get Updates By E-mail 

iOS Development Source Code Examples

This section is for app source code examples and code snippets that do not come with an in-depth tutorial.

Example: Creating A Drawing App With Really Smooth Curves

A couple of years ago I mentioned a guide on really smooth user drawn lines inspired by the Paper app.

Here’s a smooth drawing example app and guide submitted by Simon Gladman that uses hermite spline interpolation to draw curves between touch points called SmoothSCribble.

The example provides two views allowing you to see how drawing is using Hermite Spline Interpolation to draw bezier curves, and another with regular drawing.

You can find SmoothScribble on Github here.

You can find the guide over on the FlexMonkey blog.

A nice example showing how to create a drawing app with smoothed out curves.

Extensive Source Code Collection Showing How To Utilize Many Features Added With iOS 9

Last year with the release of iOS 8 I mentioned an extensive set of examples demonstrating how to utilize many of the new features added with iOS 8.

Here’s an open source project from Shuichi Tsutsumi providing a number of examples on using many of the new features added with iOS 9 including:

An auto-layout example using UIStackView
Using the new map features such as Flyover
Text detection with CIDetectorTypeText
New CIFilter Image FIlters
Using the New AVSpeechSynthesisVoice feature features
Using photo subtypes
A gallery of the new fonts

And more.

You can find the iOS-9-Sampler on Github here.

A great collection of iOS 9 code examples.

A Set Of Examples Showing How To Use Different Features Of WatchOS 2.0

Earlier this year I mentioned a set of example WatchKit projects demonstrating how to use a number of different WatchKit features.

Here’s a set of examples from shu223 showing how to use many of the different features with WatchOS 2.0.

The examples included cover use of the:

  • Accelerometer
  • Gyroscope
  • Pedometer
  • Heart Rate
  • Table Animations
  • Animated Properties
  • Audio Recording and Playback
  • WKINterfacePicker
  • Tapic Engine
  • Animation with the digital crown
  • Interactive messaging

You can find Watch-OS-2-Sampler on Github here.

A nice set of examples for those using WatchOS 2.0.

An Open Source WatchKit App With A Great Interface

Last month I mentioned a nice collection of example projects for learning to use WatchKit.

Here’s a nice example of an open source app that uses WatchKit with a great interface called Gulps from FancyPixel.

Gulps is available on the app store, and was created so the user could quickly track and visualize their water consumption. The app uses the previously mentioned DPMeterView to create the custom water tracking meter and also AMWaveTransitions for the wavy transitions.

You can find Gulps on Github here.

You can find Gulps in the App Store here.

A nice open source WatchKit example app.

via the Fancy Pixel blog

A Set Of Apple Watch Example Projects For Learning WatchKit

Earlier this year I mentioned a nice WatchKit code example of a time management app inspired by the Pomodoro technique.

Here’s a nice set of example projects from Konstantin Koval created to aid in learning WatchKit development.

The examples include:

Counter: showing how to create a simple interactive counter on the watch
Apps Communication: showing how to control an iOS app from the watch
Data Sharing: showing how to share data between the WatchKit app and iOS app
Time Color: showing how to create a simple digital clock with different background colors
UI Playgrounds: showing different UI layouts
Pages: showing how to create an app with swipe gestures

These images show the Time Color and UI Playground examples in action:

Time ColorUI Playgrounds

You can find the WatchKit-Apps examples on Github here.

A nice set of examples for those learning how to use WatchKit.