Latest 1.3.1
License BSD
Platforms ios 5.0, requires ARC

HCViews is a (currently small) collection of convenient views.

Currently there are HCBlockView and HCClippingView.


This view takes a block in order to implement -drawRect:. The context is saved before the block is executed and restored afterwards.


This view takes a UIBezierPath to clip its shape and that of its subviews to non-rectangular shapes.


An easy way to use have a UITableViewCellAccessoryDisclosureIndicator in custom colours.

To create an instance use +chevronViewWithColor:highlightedColor:, this can then be assigned to the cell’s accessoryView.

cell.accessoryView = [HCChevronView chevronViewWithColor:[UIColor redColor]
                                        highlightedColor:[UIColor greenColor]];

You can also use the UI Appearance Proxy to set the color and highlightedColor.

UIAlertView (HCContext)

Adds a context property to UIAlertView. This allows an object to be associated with a UIAlertView to allow the delegate to perform the appropriate action.

This avoids having to have a property on the view controller or having to assign arbitrary numbers to the alert view’s tag.

Latest podspec

    "name": "HCViews",
    "version": "1.3.1",
    "summary": "HCViews is a (currently small) collection of convenient views.",
    "homepage": "",
    "license": {
        "type": "BSD",
        "file": "LICENSE"
    "authors": {
        "Klaus-Peter Dudas": "[email protected]"
    "social_media_url": "",
    "source": {
        "git": "",
        "tag": "1.3.1"
    "platforms": {
        "ios": "5.0"
    "exclude_files": "Classes/Exclude",
    "requires_arc": true,
    "subspecs": [
            "name": "HCBlockView",
            "source_files": "Classes/HCBlockView.{h,m}"
            "name": "HCChevronView",
            "source_files": "Classes/HCChevronView.{h,m}"
            "name": "HCClippingView",
            "source_files": "Classes/HCClippingView.{h,m}"
            "name": "UIAlertViewHCContext",
            "source_files": "Categories/UIAlertView+HCContext.{h,m}"

Pin It on Pinterest

Share This