Latest 1.0.0
Homepage https://github.com/songhailiang/ScrollViewDelegateProxy
License MIT
Platforms ios 8.0, requires ARC
Authors



Make it possible to set multiple delegates for a UIScrollView.

It’s probably useful when you can’t change a UIScrollView’s delegate implementation(maybe it’s in a framework), but you really want to add some codes in the delegate implementation. Now, you can try this. It’s quite simple.

Installation

CocoaPods

pod 'ScrollViewDelegateProxy'

Manual

Add ScrollViewDelegateProxy.swift to your project

Usage

Just call scrollview.addDelegate method to add a new delegate to a scrollView.

Notice:

  • This method should be called after you set the scrollView.delegate property. If can’t, you need to call reloadDelegateProxy method after you set the scrollView.delegate property.
  • This lib will ignore those Non-Void delegate methods in current version. It means that you can’t get those callbacks. I don’t have a good solution for this rightnow, any idea is especially expected.

Latest podspec

{
    "name": "ScrollViewDelegateProxy",
    "version": "1.0.0",
    "summary": "Make it possible to set multiple delegates for a UIScrollView",
    "description": "It's probably useful when you can't change a UIScrollView's delegate implementation(maybe it's in a framework), but you really want to add some codes in the delegate implementation.",
    "homepage": "https://github.com/songhailiang/ScrollViewDelegateProxy",
    "license": "MIT",
    "authors": {
        "hailiang.song": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/songhailiang/ScrollViewDelegateProxy.git",
        "tag": "1.0.0"
    },
    "source_files": "Sources",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This