iOS & macOS development
132.9K views | +0 today
iOS & macOS development
cool tips and source code for Cocoa, Swift and Objective-C
Curated by Alessio Nonni
Your new post is loading...
Your new post is loading...
Scoop.it!

Siren - Notify users when a new version of your app is available, and prompt them with the App Store link

Siren - Notify users when a new version of your app is available, and prompt them with the App Store link | iOS & macOS development | Scoop.it

Siren checks a user's currently installed version of your iOS app against the version that is currently available in the App Store.


If a new version is available, an alert can be presented to the user informing them of the newer version, and giving them the option to update the application. Alternatively, Siren can notify your app programmatically, enabling you to inform the user through alternative means, such as a custom interface.

No comment yet.
Scoop.it!

Using Dispatch Groups to Wait for Multiple Web Services - Command Shift

Imagine your app has to run a series of nice web service calls. These could be for a set-up task, for example - when your app launches it may need to get various bits of configuration information from a server. This could involve hitting several endpoints.


You want to call a single method to kick this process off, and have a completion block run when it has finished. The web services don’t depend on each other. How can this be done?


There’s a horrible way: start each service from the completion block of the previous one, and when the last one is done, call your overall completion block.


The nice way to do this is by using dispatch groups. A dispatch group monitors work that has been added to it, and it will know when that work is done.

No comment yet.
Scoop.it!

Favorite Swift Tips & Tricks of 2014 — Realm

To celebrate the end of the year and the first 6 months of Swift, we asked ten of our Swift-est friends for their favorite Swift tips & tricks of 2014. Thanks to everyone for sharing!

No comment yet.
Scoop.it!

AsyncDisplayKit Tutorial: Achieving 60 FPS Scrolling

AsyncDisplayKit Tutorial: Achieving 60 FPS Scrolling | iOS & macOS development | Scoop.it

AsyncDisplayKit enables you to achieve 60 FPS even with a highly interactive UI. Learn how with this hands on AsyncDisplayKit tutorial.

No comment yet.
Scoop.it!

Breaking Changes to Swift in Xcode 6 Beta 3

Apple do not apply the beta label lightly: the most recent beta version of Xcode 6 (Beta 3) has introduced a number of changes to the Swift programming language, some breaking. Apple’s new programming langauge was introduced only a month ago at WWDC 2014 and apparently even the language itself is still very much under development. In this post I will attempt to sum up the latest changes.

No comment yet.
Scoop.it!

Cartography

Set up your Auto Layout constraints declaratively and without any stringly typing!

No comment yet.
Scoop.it!

Swift Playground Builder

Swift Playground Builder | iOS & macOS development | Scoop.it

Create Xcode Playgrounds for the Swift programming language with rich documentation generated from Markdown.

No comment yet.
Scoop.it!

Swift Cheat Sheet

Swift Cheat Sheet | iOS & macOS development | Scoop.it

A short guide to using Apple's new programming language, Swift.

No comment yet.
Scoop.it!

FlappySwift

FlappySwift | iOS & macOS development | Scoop.it

An implementation of Flappy Bird in Swift for iOS 8.

No comment yet.
Scoop.it!

Popping

Popping | iOS & macOS development | Scoop.it

Popping is a collection of animation examples for iOS apps. Almost all of them were created using the Facebook pop animation engine. It should inspire you to create some great looking UIs to delight people who use your app.

No comment yet.
Scoop.it!

Interpolating Points in iOS with UIBezierPath

Interpolating Points in iOS with UIBezierPath | iOS & macOS development | Scoop.it

Two simple and commonly-used methods for interpolating points in iOS with cubic Bezier curves.

No comment yet.
Scoop.it!

65 Web and Mobile App Analytics Tools - Autosend

65 Web and Mobile App Analytics Tools - Autosend | iOS & macOS development | Scoop.it
A list of analytics tools for mobile and web app teams. Find the perfect mobile, web, or cross-platform analytics tool.
No comment yet.
Scoop.it!

19 A/B Testing Tools for Mobile Apps - Autosend

19 A/B Testing Tools for Mobile Apps - Autosend | iOS & macOS development | Scoop.it
A/B testing tools for mobile apps help you learn what works. Here's a list of 21 mobile app testing tools you can use to improve app engagement and revenue.
No comment yet.
Scoop.it!

Showing TODO as a warning in a Swift Xcode project

Showing TODO as a warning in a Swift Xcode project | iOS & macOS development | Scoop.it

I rarely use comments when I’m coding. I do make one exception though; using // TODO: and // FIXME: to highlight pieces of code I need to revisit at a later date. The advantage of doing this is that the lines then show up in the jump bar popover in bold text with one-click access to the exact line.


The issue I have with this is that it is very easy to forget about them unless you are using the jump bar frequently. I used to log them in my todo manager, Things, but that duplicates the workload. It would be much more useful if those errors were flagged in some way…

No comment yet.
Scoop.it!

Loopy, Random Ideas for Extending "enum"

Loopy, Random Ideas for Extending "enum" | iOS & macOS development | Scoop.it

Enumerations are a great, Swift-specific language feature. Due to their extensibility, what is a simple list of options in another language can have extremely useful additional features. Let’s take a look at how we can add a few to the default enum type: a nice description, a list of all possible values, and a method to choose a random case.

No comment yet.
Scoop.it!

Xcode Consolation | Indie Stack

Xcode Consolation | Indie Stack | iOS & macOS development | Scoop.it

One of the best things any Mac or iOS developer can do to improve their craft is to simply watch another developer at work in Xcode. Regardless of the number of years or the diversity of projects that make up your experience with the tool, you will undoubtedly notice a neat trick here or there that changes everything about the way you work.

No comment yet.
Scoop.it!

SwiftToolbox

SwiftToolbox | iOS & macOS development | Scoop.it

Swift toolbox is a community-supported catalog
of iOS and OSX libraries written in the
Swift Programming Language.


No comment yet.
Scoop.it!

TaskQueue

TaskQueue | iOS & macOS development | Scoop.it

A Task Queue Class developed in Swift.

No comment yet.
Scoop.it!

Swift Generics

Generics have been around for a long time so the concept is not very new, but for Cocoa programmers this is the beginning of something special. So what are Generics exactly? Generics allow a programmer to tell their functions and classes, "I am going to give you a type later and I want you to enforce that type everywhere I specify." This eliminates a whole slew of functions that you would have to write otherwise.

No comment yet.
Scoop.it!

Dollar.$wift by ankurp

Dollar.$wift by ankurp | iOS & macOS development | Scoop.it

$ is a Swift library that provides useful functional programming helper methods without extending any built in objects.

No comment yet.
Scoop.it!

Swift Programming Language Resources

Swift Programming Language Resources | iOS & macOS development | Scoop.it

Swift Programming Language Resources: Guides, Books, Sample Code and Tutorials

No comment yet.
Scoop.it!

SwiftFonts

SwiftFonts | iOS & macOS development | Scoop.it

An app to list the available fonts on iOS, written entirely in Swift.

No comment yet.
Scoop.it!

Swift Language Highlights: An Objective-C Developer's Perspective | Ray Wenderlich

Swift Language Highlights: An Objective-C Developer's Perspective | Ray Wenderlich | iOS & macOS development | Scoop.it

Check out some of the highlights of the new Swift language from an Objective-C developer's perspective!

No comment yet.
Scoop.it!

Swift Cheat Sheet and Quick Reference | Ray Wenderlich

Swift Cheat Sheet and Quick Reference | Ray Wenderlich | iOS & macOS development | Scoop.it

It summarizes the most important Swift syntax on one page to get you up to speed quickly, including:

  • Class Implementation
  • Methods
  • Creating/Using an Object
  • Declaring Variables
  • Control Flow
  • String Quick Examples
  • Array Quick Examples
  • Dictionary Quick Examples
No comment yet.
Scoop.it!

ATOM - A hackable text editor for the 21st Century

ATOM - A hackable text editor for the 21st Century | iOS & macOS development | Scoop.it
At GitHub, we’re building the text editor we’ve always wanted: hackable to the core, but approachable on the first day without ever touching a config file. We can’t wait to see what you build with it.
No comment yet.