Paul Williamson

6pods

CocoaUPnP

CocoaUPnP is a logical progression of upnpx - designed to be easy, modern and block-based.

Currently it supports most of the methods required by the audio video device control protocols.

It features a comprehensive suite of unit tests

License: MIT

  • Objective C

SQFInMemoryContext

SQFInMemoryContext

Quickly and easily create an in-memory context for Unit Testing Core Data entities. Despite the name, SQFInMemoryContext is actually just a simple category on NSManagedObjectContext.

Using

Install by either dragging the header and implementation files into your project, or by installing using CocoaPods:

ruby pod 'SQFInMemoryContext'

Import the convenience header.

```objc

import

```

Instantiate a new context for your tests:

objc NSManagedObjectContext *moc = [NSManagedObjectContext memoryStoreForModel:@"MyCoreDataModel"];

License: MIT

  • Objective C

UIColor+ContrastingColor

UIColor+ContrastColor

Returns either black or white based on the contrast against the current colour.

There are currently two options for determining which colour to use: the 50% method, or the YIQ method.

The 50% Method

The self colour is converted to hex then checked if it is >= 0x808080. If the colour is >= 0x808080 then black colour is returned, otherwise white colour is returned.

The YIQ method

The YIQ method is arguably better as it applies weighting to the colours, which could result in better contrast matches.

Screenshot

License: MIT

  • Objective C

UIDeviceIdentifier

UIDeviceHardware is a class which allows querying of the current users device, and returns a human formatted string.

License: MIT

  • Objective C

UIImage+ColorFromImage

UIImage+ColorFromImage is a category on UIImage which returns a UIColor based on the image this method is called from.

License: MIT

  • Objective C

upnpx

Static OS X & iOS UPnP library written in Cocoa (UPnP) and C++ (SSDP).The Current implementation has support for control point/client only.

License: NOASSERTION

  • Objective C