Get Timerange Weekdisc’s source code for your own project

Screen Shot 2015-03-16 at 09.49.26
Remember this little guy from Timerange? Now you can buy its source code for your own project on Chupamobile.

RDWeekdisc is a control that provides a nice way for selecting weekdays.

RDWeekdisc arranges all weekdays in a circle, and has a label in the center of it.

Each weekday is a circle with a label in it. If you tap on it, it changes its state to on or off (selected — not selected) with a fancy animation.

All text and colors are fully customizable. You can even set the radius of the circle in which weekdays are placed, and size of weekday circles.

You can set up RDWeekdisc through the Interface Builder or by writing a few lines of code.

There’s a full documentation for it on Chupamobile, and you can buy it from there.

Movieday 2.1 update released

A new version of Movieday just reached the App Store.

• Movieday is now more integrated into iOS 8 with an extension for Notification Center. It shows you movies that you set for a current day. You can also mark movies as watched right in Notification Center and tap on a movie to get full information about it in Movieday.
• The app is now optimized for iPhone 6 and 6 Plus.
• Digging through movies and people info? Tap and hold Back button to go all the way back to where you started.
• Use date picker instead of calendar if you want when you add a new movie, and quickly switch between them.
• Added image caching.
• Improved search.
• Fixed a bug when you couldn’t delete a movie.
• Smaller fixes and design improvements.

How to use Swift code in Objective-C

Apple told you about it, but not very clean. The process is actually pretty simple.

Xcode generates a header file for all your Swift code in the project, so you can use it in Objective-C. Yes, if you have multiple Swift files in your project, you shouldn’t think about what file you need to import — it’s just one for all Swift code. The file name of this header is "ModuleName-Swift.h". And we’ll set it up now in a few steps. Continue reading

How to create custom cells for UICollectionView using Swift

Let’s continue our journey through the UICollectionView class. Creating cells for UICollectionView is really easy, moreover you can use the same approach for UITableView. Let’s take a look at how to do it using Swift.

You will learn how to create simple cells with text and images in them, how to handle taps, and at the end of the article I’ll talk about how to use a xib file to create a cell.

In this tutorial I presume that you’ve already finished my previous tutorial — How to create UICollectionView using Swift without storyboards, because here I’ll use our finished Xcode project. If you didn’t, then don’t worry, the only thing you need here is working UICollectionView. Continue reading

How to import a 3rd party framework into a Swift project

One day you’ll need to set up, let’s say, a mobile analytics system or a crash reports sender in your app. They are all useful, but some of them require you to import their framework into your Xcode project. Problem is, they’re now all written not using Swift Programming Language. In this little article I’ll tell you how to properly import a framework into your project. Continue reading

SyntaxHighlighter Evolved: Swift Brush released

This simple WordPress plugin adds support for the Swift Programming Language to the SyntaxHighlighter Evolved plugin.
Requires SyntaxHighlighter Evolved plugin to be installed first.

I admit that I may have missed some Swift keywords or something, so if you find it, please tell me about it. Thank you.

Example code

@objc
class ExampleClass {

    let text: String
    var num = 0

    init(text: String) {
        self.text = text
        println("Text = " + text)
    }

    func incrementNum() {
        num++
    }
}

Installation Instructions

  1. Upload syntaxhighlighter-swift to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.

How to use

Simply wrap your code in tags or . You may want to take a look at more tags that you can use on SyntaxHighlighter Evolved settings page.

Download now from here.