A customizable LED ticker framework for iOS, as seen in the Stock Picking Darts app for iPhone and iPad: https://itunes.apple.com/us/app/stock-picking-darts-invest/id495510614?mt=8 . Written in Swift, and fully interoperable with Objective-C, supporting back to iOS 8.
Author: Jay Ayres
The quickest way to get started is to use CocoaPods:
gem install cocoapods
Specify it in your Podfile:
source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' use_frameworks! target '<Your Target Name>' do pod 'JATickerView', '~> 2.0' end
Alternatively, you may import the JATickerView.xcodeproj project file into your project manually. Open up JATickerView.xcworkspace and build the JATickerViewSampleObjC or JATickerViewSampleSwift targets to see how to import the project file manually into either an Objective-C or Swift project.
The main ticker view type is the JATickerView. You may add this view either through InterfaceBuilder or programmatically via code.
Be sure to set the JATickerView's delegate to a class implementing the JATickerViewDelegate protocol. The most important delegate method to implement is:
func tickerView(tickerView: JATickerView, tickerDataAtEnd currentLength: UInt) -> String
which returns to the ticker a string to display. This method is called whenever the ticker has run out, or is about to run out, of text to display. It is also called the first time after the startTicker method is invoked.
Call the startTicker method on JATickerView to start the ticker, after its delegate has been set. See the example code for more advanced usage of the ticker.
JATickerView is released under the Apache 2.0 License. See LICENSE for details.