James Addyman

@jasarien // London, UK

View on GitHub

JSController screenshot


A set of classes that make it easy to build a controller UI for games. - Written purely in UIKit - All controls are both delegate based and/or pollable. - D-Pad class with full 8 directions, background and direction images can be swapped out - Push Button class with configurable background images - Analogue stick class that uses a normalized -1.0 to 1.0 scale and supports inverted Y axis. Background and handle images can be swapped out. - Can be used within Interface Builder, just drag a UIView onto your XIB and set it's class as JSDPad, JSButton or JSAnalogueStick. You can set it's delegate from within interface builder as well as its position and size. This project uses ARC. If your project does not use ARC, you will need to add the compiler flag -fobjc-arc to each of the JSController classes used in your project. This can be done in the Compile Sources build phase in the project settings. To see these controls in action, check out the my Gameboy Advance Emulator project: https://github.com/jasarien/GBA4iOS

View Control

JSTokenField screenshot


An iOS token field based on the behaviour and functionality provided by Mail.app's email recipient field.

View Control

JSScrollableTabBar screenshot


A simple, refined tab bar for iOS that resembles the TabStrip control found in the popular Three20 library, without the dependencies.

View Control

JSFavStarControl screenshot


Resembles the 'star rating' control seen in the iPod app.

View Control

JSLockScreen screenshot


JSLockScreen is an iOS UI component that replicates iOS's lock screen functionality. It aims to be as close to the original lock screen UI as possible and be easy to use in almost any situation where a lock screen may be required. It is a view controller with delegate based call backs. Implement the delegate methods, create an instance of the lock screen controller and tell it to show in a particular window and the rest is handled for you.

View Control

CoreTextHyperlinkView screenshot


Uses AutoHyperlinks code from Adium http://code.google.com/p/maccode/wiki/AutoHyperlinks Project includes an example of how to use the core text view. It's pretty simple - create the view with a 0 height frame, set the attributes, set its text, and then ask it for it's size so that the height is just correct. It will calculate based on the constraining width, and any padding that you set. There is also a Twitter specific subclass that enables @usernames and #hashtags to be linkified. Settable Attributes: textAlignment textColor linkColor highlightedLinkColor fontName fontSize paddingTop paddingLeft backgroundImage bgImageTopStretchCap bgImageLeftStretchCap

View Control