Latest 1.0.1
Homepage https://github.com/anton-filimonov/AFCurvedArrowView
License MIT
Platforms ios 8.0, requires ARC
Authors

Version
GitHub license
Platform

A view to show a configurable arrow wherever you need. (Mostly useful for user guides) You don’t need to have different images for arrows for different screen sizes.

Installation

  • You can install it using cocoapods. Just add pod 'AFCurvedArrowView' to your Podfile and run pod install
  • Or you can just copy files AFCurvedArrowView.h and .m to your project.

Usage

Create AFCurvedArrowView, tweak it and add to your view like this:

AFCurvedArrowView *arrowView = [[AFCurvedArrowView alloc] initWithFrame:CGRectMake(100.0, 100.0, 200.0, 200.0)];
arrowView.arrowHeadHeight = 20.0;
arrowView.arrowHeadWidth = 10.0;
arrowView.arrowTail = CGPointZero;
arrowView.arrowHead = CGPointMake(1.0, 0.7);
arrowView.controlPoint1 = CGPointMake(-0.3, 1.3);
arrowView.curveType = AFCurveTypeQuadratic;
[self.view addSubview:arrowView];

Or you can add it in your nibs or storyboards and tweak it’s IBInspectable properties.

Screenshot

iPhone

AFCurvedArrowView

License

The MIT License (MIT)

Latest podspec

{
    "name": "AFCurvedArrowView",
    "version": "1.0.1",
    "summary": "A view to show a configurable arrow wherever you need",
    "description": "A view to show a configurable arrow wherever you need. (Mostly useful for user guides) With its' help you donu2019t need to have different images for arrows for different screen sizes anymore.",
    "homepage": "https://github.com/anton-filimonov/AFCurvedArrowView",
    "screenshots": "https://github.com/anton-filimonov/AFCurvedArrowView/blob/master/sample.gif?raw=true",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Anton Filimonov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/anton-filimonov/AFCurvedArrowView.git",
        "tag": "1.0.1"
    },
    "social_media_url": "https://twitter.com/AntonFilimon",
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "AFCurvedArrowView/Classes/**/*",
    "public_header_files": "AFCurvedArrowView/Classes/**/*.h"
}

Pin It on Pinterest

Share This