background preloader

Tutorials

Facebook Twitter

Common Mistakes With Adding Custom Fonts to Your iOS App.

Books

Videos. Games. How to make a horizontal paging UIScrollView with Auto Layout in Storyboards [Swift 3] Update August 2016: Fully updated for Xcode 8 and Swift 3 Since Auto Layout came to life, the task of making adaptive user interfaces that support all screen sizes, has become a piece of cake.

How to make a horizontal paging UIScrollView with Auto Layout in Storyboards [Swift 3]

Although that’s a bit of a challenge in some of the situations, this technology has helped get things done easier and faster than before with more enhanced and optimised UI. In this tutorial, you will learn how to make a cool starting slideshow for your app, something you would show to the user the first time he launches the app, so that you guide him over the main features of your app. These kind of slideshows are famous and are implemented in many apps with different fancy layouts and animations. Without further ado, let’s slide in Open up Xcode, select “File\New\Project” from the menu, choose the “Single View Application” template and make sure the default language is Swift. Select ‘Main.storyboard’ from the ‘Project navigator’ view, then choose one of the device sizes from the “View as” panel. Swift Guide to Map Filter Reduce. May 9, 2016 · 7 minute read · 1 Comment Swift Using map, filter or reduce to operate on Swift collection types such as Array or Dictionary is something that can take getting used to.

Swift Guide to Map Filter Reduce

Unless you have experience with functional languages your instinct may be to reach for the more familiar for-in loop. With that in mind here is my guide to using map, filter, reduce (and flatMap). Map. OS X Stack Views with NSStackView. We’ve all been there: that moment when you start laying down the UI of your app window and it all looks great.

OS X Stack Views with NSStackView

UISearchController Tutorial: Getting Started. So much data, so little time.

UISearchController Tutorial: Getting Started

Note: Updated for Xcode 7.3, iOS 9.3, and Swift 2.2 on 04-03-2016 Update note: This tutorial was updated to iOS 9 and Swift 2 by Andy Pereira. Original post by Tutorial Team Member Nicolas Martin. If your app displays large datasets, scrolling through massive lists becomes slow and frustrating. Creating a Sidebar Menu in iOS Apps Using Swift. As promised, here is the Swift version of the slide out sidebar menu tutorial.

Creating a Sidebar Menu in iOS Apps Using Swift

Again we will make use of an open source library called SWRevealViewController to build the sidebar menu. Though the library was written in Objective-C, you can easily integrate it into any Swift project. You will see how easy you can access and interact with Objective-C classes using Swift. Okay, let’s get started. UIScrollView Tutorial: Getting Started. If you're new here, you may want to subscribe to my RSS feed or follow me on Twitter.

UIScrollView Tutorial: Getting Started

Thanks for visiting! Learn how to use UIScrollViews for paging, zooming, scrolling, and more! Background Modes Tutorial: Getting Started. Learn how to make your app do stuff even when it is no longer active Update note: This tutorial was updated to iOS 8 and Swift by Ray Fix.

Background Modes Tutorial: Getting Started

Original post by Gustavo Ambrozio. Since the ancient days of iOS 4, you can design your apps to stay suspended in memory when users push the home button. UISearchController Tutorial: Getting Started. Learn - Modules. Push Notifications Tutorial: Getting Started. If you're new here, you may want to subscribe to my RSS feed or follow me on Twitter.

Push Notifications Tutorial: Getting Started

Thanks for visiting! Learn how to get started with push notifications! iOS developers love to imagine users of their awesome app using the app all day, every day. Unfortunately, the cold hard truth is that users will sometimes have to close the app and perform other activities. Laundry doesn’t fold itself, you know :] Happily, push notifications allow developers to reach users and perform small tasks even when users aren’t actively using an app!

Push notifications have become more and more powerful since they were first introduced. Display a short text message Play a notification sound Set a badge number on the app’s icon Provide actions the user can take without opening the app Be silent, allowing the app to wake up in the background and perform a task. How to Use iOS Charts API to Create Beautiful Charts in Swift. Using charts to display data can help users understand the information more easily than they would if it were presented in a table, especially when dealing with a lot of data.

How to Use iOS Charts API to Create Beautiful Charts in Swift

With charts, you can easily see patterns in the data at a glance as opposed to reading through a whole table (or several tables) to get this information. The use of charts has been a common feature in business and fitness apps. In this article, we’ll look at how to add charts to your application using the ios-charts library by Daniel Cohen Gindi. ios-charts is an iOS port of the fairly popular Android library MPAndroidChart created by Philipp Jahoda. With this library, you can include various types of charts in your app fairly quickly and easily. With a few lines of code, you can have a fully working and interactive chart, that is highly customizable. Core features of the library include: Learn swift in Y Minutes. Swift is a programming language for iOS and OS X development created by Apple.

Learn swift in Y Minutes

Designed to coexist with Objective-C and to be more resilient against erroneous code, Swift was introduced in 2014 at Apple’s developer conference WWDC. It is built with the LLVM compiler included in Xcode 6+. The official Swift Programming Language book from Apple is now available via iBooks. The Many Faces of Swift Functions · objc.io. Although Objective-C has some strange-looking syntax compared to other programming languages, the method syntax is pretty straightforward once you get the hang of it.

Here is a quick throwback: In contrast, while Swift syntax looks a lot more like other programming languages, it can also get a lot more complicated and confusing than Objective-C. Before I continue, I want to clarify the difference between a Swift method and function, as I’ll be using both terms throughout this article. Here is the definition of methods, according to Apple’s Swift Programming Language Book: Swift Swift: Implementing Picker Views. [Updated to Swift 2.1 2/5/16 SJL] This week, we’ll look at UIPickerView. Picker views are the spin-wheel like controls that often remind me of slot machines.

Picker views, like table and collection views, are delegate based. You need to adopt a delegate and data source to get them to work properly. Picker views also take a lot of screen real estate that is not under developer control, which means your view can get crushed quickly. Professional developers do not use them as often as table views, but they work well for static multi-selection situations. UIPickerView as inputview for UITextField. Deze tutorial is bijgewerkt voor X-code 7.0 & gierzwaluw 2.0 Dit wordt zeer vaak gebruikt in vele iOS-apps. In plaats van het toetsenbord opduiken wanneer je klikt op het tekstveld, de picker view opduikt. En je kunt een of meerdere strings selecteren die moet worden toegevoegd aan het tekstveld.

Ten eerste laat het opzetten van de x-code project zoals gebruikelijk. Maak nieuwe single view applicatie X-code project. 2. Infinite scrolling. Scroll in two directions, like Netflix. Want to give users a way to casually explore different categories of content without having to tap into a detail page? Independently scrolling rows can help you achieve this effect.

Netflix and the App Store use this type of UI for their discovery dashboards. Since the images are in sort of a grid, a Collection View seems like a natural tool of choice. Collection Views do support scrolling in both directions, but its sections are not designed to scroll independently. iOS & Swift Tutorial: UITableViewController. This tutorial shows how to: Requirements. A collection of Swift tutorial sites. With Swift into it’s second year of life in the public there are more and more tutorials appearing on the internet everyday which is a boon to new and experienced programmers alike. Of course there is a lot of rubbish out there to sort through. many just rip off other peoples work, some don’t get into enough detail to be helpful, and others are just not well written. I have compiled a list of what I think are some of the best tutorials currently out there on the interwebs.