Tag Archives: iOS

Implementing Handoff In iOS and macOS

03 Aug 17
Steven Beyers
, , , ,
No Comments

Handoff is a neat feature that was introduced in iOS 8 and macOS (then OS X) v10.10. This capability allows an app to pass data across macOS and iOS devices so that a task started on one device can be completed on another device. The difference between this and continuing an activity by saving a file to a place like iCloud and resuming the activity on another device is context. Meaning that when you use handoff, unlike other methods, the user of your app will be in the exact same location, when the app is opened on a second device, as they were on the first device.

Read More…

NSAttributedString Enhancements in iOS 11

03 Aug 17
Steven Beyers
, , ,
No Comments

An NSAttributedString can be a pain to configure in the way that you want. The attributes dictionary has always been a dictionary comprised of StringAny pairs. There have been some nice enhancments in iOS 11, though.

Read More…

Implementing Drag and Drop in iOS 11 Part 2

28 Jul 17
Steven Beyers
, , ,
No Comments

Getting Started

This tutorial picks up where Implementing Drag And Drop As A Destination App In iOS 11 leaves off. If you have already gone through that tutorial, you can continue on with the same source code. Otherwise, check out the code from GitHub.

Read More…

Implementing Drag and Drop in iOS 11 Part 1

28 Jul 17
Steven Beyers
, , ,
No Comments

At WWDC Apple announced that iOS 11 will now support Drag and Drop. This works not only within an app, but also from one app to another. Dragging between apps is only supported on iPads. Drag and Drop between apps works if the iPad is in split view mode, with both the source and destination apps open side by side, or even if the destination app is completely closed.

Read More…

Large Titles For Navigation Bars In iOS 11

26 Jul 17
Steven Beyers
, , , ,
No Comments

If you have played with iOS 11 either on a simulator or on a real device, you have probably noticed that most of the first party apps, such as Mail and Settings, use large titles in the navigation bar. We are going to look at how to implement the same navigation bar behavior in our apps. Unsurprisingly, Apple has made this very easy for us.

Read More…

Enabling Siri Integration With SiriKit

26 Jul 17
Steven Beyers
, , , , ,
one comments

SiriKit was created for developers in iOS 10. However, there were, and still are, a limited number of intent domains with which you can integrate an app. An intent domain is simply a category of app that can take advantage of Siri. With the release of iOS 11, a few new domains are being made available.

Read More…

Layout Anchors

25 Jul 17
Steven Beyers
, ,
No Comments

In this screencast we demonstrate how to use Layout Anchors. Layout Anchors are a way of creating NSLayoutConstraints in code that are simpler and easier to read than creating NSLayoutConstraints directly.

Read More…

Handling Keyboard Shortcuts In iOS

20 Jul 17
Steven Beyers
, , ,
one comments

The debate as to whether or not the iPad can replace a computer is on going. We do not need to get into the discussion of who this might work for or what kind of work can be done with an iPad. The fact is that for some people this is already happening. Even if people are not using the iPad as a computer replacement, many people are at least using it as a light weight computer. It is a computer that has a pointing device (finger, Apple Pencil or stylus), a spacious screen and a keyboard, which allows us to use shortcuts.

Read More…

New App: Fraction Quizzer

31 Aug 16
Steven Beyers
, , , ,
No Comments

For the past 6 weeks we have been lucky enough to partner with a group of math teachers/researchers from a University in North Eastern U.S. These researchers are trying to find new and effective ways of teaching young students who are falling behind in math. As part of their strategy, they wanted to create an app that quizzes the students about fractions using proportions.

Read More…

CalendarKit

07 Dec 15
Steven Beyers
, , ,
No Comments

CalendarKit

CalendarKit is an open source project we have been working on to insert a calendar in an iOS app. There are many calendar frameworks that can be used but when we needed one they all seemed to be missing something that was important to us. As of June 2, 2016 we have implemented all of the features that we need. However, if you have a request for a feature let us know. We want to make this the best calendar framework there is.

The code can be found on GitHub and can be added to your project as source code or compiled into a framework.

Features

  • Completely customizable UI – Font, color, placement of UI elements – EVERYTHING.
  • Set a minimum and maximum date – The calendar will never scroll beyond those dates.
  • Set disabled dates – In some applications special dates such as holidays should be disabled.
  • Set disabled weekends – A quick way to disable all weekends.
  • Accessory views – Need some way to indicate there is data related to a particular date? Use the accessory view!
  • Usable wherever needed – Full screen? Embedded in a larger screen? In a popover? This calendar can do it all.

Using CalendarKit

For sample code on how to best use CalendarKit, checkout the GitHub page. There is a sample app in the same project where I have demonstrated a lot of the flexibility of the framework.

If you want to get started quickly all you need is this code:

Then, conform to the CalendarDelegate protocol and implement func calendar(calendar: Calendar, didSelectDate date: NSDate). Thats it.

Want to contribute?

Since this is open source, we would love to have community involvement. Feel free to fork our project so that you can contribute!

Screen shots

keyboardInput_CalendarKit
embedded_CalendarKit
fullScreen_CalendarKit