Latest 0.0.3
Homepage https://github.com/valosip/VOInteractiveLabel
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Introduction

VOInteractiveLabel example

Usage

import VOInteractive
class ViewController: UIViewController, VOInteractiveLabelDelegate {

    override func viewDidLoad() {
        super.viewDidLoad()
        myLabel = FillInBlankLabel3()
        myLabel.delegate = self
        myLabel.text = "My name is enter name here"
        myLabel.blankArray.append(FillInBlankModel1(type: .string, 
                                    text: "enter name here", 
                                    hint: "Please enter your name", 
                                    placeholder: "Name", 
                                    attributes: [NSForegroundColorAttributeName: UIColor.black,
                                                NSUnderlineColorAttributeName: UIColor.black,
                                                NSUnderlineStyleAttributeName: NSUnderlineStyle.styleSingle.rawValue]))

        self.view.addSubview(myLabel)
        myLabel.setupLabelAttributes()
    }

    // MARK: - VOInteractiveLabel 
    func clickedOnLinkAtIndex(_ index: Int, inLabel label: FillInBlankLabel3) {
        print("Clicked on link")
    }
    func clickedOnBlankAtIndex(_ index: Int, inLabel label: FillInBlankLabel3) {
        print("Clicked on blank")
    }
    func clickedOnHashtagAtIndex(_ index: Int, inLabel label: FillInBlankLabel3) {
        print("Clicked on hashtag")
    }
    func clickedOnMentionAtIndex(_ index: Int, inLabel label: FillInBlankLabel3) {
        print("Clicked on mention")
    }
}

Requirements

iOS 7+

Installation

VOInteractiveLabel is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "VOInteractiveLabel"

Changelog

0.0.3

  • Additional documentation

0.0.2

  • Add documentation and screenshots

0.0.1

  • Initial beta release

License

VOInteractiveLabel is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "VOInteractiveLabel",
    "version": "0.0.3",
    "summary": "Fill in the blank UILabel with link, hashtag and mention support",
    "description": "This pod was created to add a fill in the blank feature to UILabel.nAlong with link, hashtag and mention support.",
    "homepage": "https://github.com/valosip/VOInteractiveLabel",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "valosip": "[email protected]"
    },
    "source": {
        "git": "https://github.com/valosip/VOInteractiveLabel.git",
        "tag": "0.0.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "VOInteractiveLabel/Classes/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This