All Projects → iOSPrincekin → PrincekinKlineFrame

iOSPrincekin / PrincekinKlineFrame

Licence: Apache-2.0 license
一款用Swift开发的K线图和深度图组件,具有轻量、敏捷等特点,可供虚拟货币行业和金融行业使用

Programming Languages

swift
15916 projects
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to PrincekinKlineFrame

DepthChart
深度图
Stars: ✭ 28 (-61.11%)
Mutual labels:  kline, depthchart
blade runner
Blade Runner is a Jamf Pro based Python application that automates and implements a framework to offboard, secure erase and document deprecated Mac systems.
Stars: ✭ 24 (-66.67%)
Mutual labels:  macosx
binance-downloader
Python tool to download Binance Candlestick (k-line) data from REST API
Stars: ✭ 44 (-38.89%)
Mutual labels:  kline
GLPT
GLPT :: OpenGL Pascal Toolkit. A multi-platform library for OpenGL and OpenGL ES
Stars: ✭ 26 (-63.89%)
Mutual labels:  macosx
PhotoMiner
Photo finder application for macOS
Stars: ✭ 102 (+41.67%)
Mutual labels:  macosx
conky-for-macOS
macOS port of the Light-weight system monitor for X.
Stars: ✭ 139 (+93.06%)
Mutual labels:  macosx
cmus-control
Control cmus with Media Keys ⏪ ▶️ ⏩ under OS X.
Stars: ✭ 51 (-29.17%)
Mutual labels:  macosx
MarvelForKeynote
Sync your Keynote file to Marvel
Stars: ✭ 16 (-77.78%)
Mutual labels:  macosx
picosdk-c-examples
A set of C/C++ examples for PicoScope® oscilloscope and PicoLog® data logger products.
Stars: ✭ 37 (-48.61%)
Mutual labels:  macosx
CIS-for-macOS-High-Sierra
No description or website provided.
Stars: ✭ 15 (-79.17%)
Mutual labels:  macosx
SandboxMirror
Tool for reverse-engineering Apple's sandbox
Stars: ✭ 49 (-31.94%)
Mutual labels:  macosx
tracker
Track your activities!
Stars: ✭ 14 (-80.56%)
Mutual labels:  macosx
iOS-AirPrint-for-Mac
enable iOS Airprint Sharing on Mac OS
Stars: ✭ 24 (-66.67%)
Mutual labels:  macosx
MinaOTP-MAC
Two-factor authentication tray app in macOS
Stars: ✭ 51 (-29.17%)
Mutual labels:  macosx
stinsen
Coordinators in SwiftUI. Simple, powerful and elegant.
Stars: ✭ 563 (+681.94%)
Mutual labels:  macosx
Patched-AppleHDA-for-Mac-OS-Sierra-10.12
Patched AppleHDA for Realtek ALC ,VIA VT, IDT , Cirrus Logic Audio Codecs for Hackintosh's
Stars: ✭ 38 (-47.22%)
Mutual labels:  macosx
OKKLineMin
OKKLineMin kline for min for learning for iPhone (support Swift5 & the latest Swift & iPhone & iOS 16)(min K线图 用于学习了解)
Stars: ✭ 23 (-68.06%)
Mutual labels:  kline
WeChatWork-MacOS
企业微信小助手
Stars: ✭ 27 (-62.5%)
Mutual labels:  macosx
nvim
Repository for the Tandem NeoVim Plugin
Stars: ✭ 23 (-68.06%)
Mutual labels:  macosx
sloth-app
Sloth desktop app
Stars: ✭ 16 (-77.78%)
Mutual labels:  macosx

PrincekinKlineFrame

DepthChart DepthChart Platform Language: Swift-4.1

PrincekinKlineFrame 是使用Swift语言编写的在iOS平台上运行的k线图库和深度图库的集合,她是由PrincekinKline和PrincekinDepthChart两个组件组成。她具有轻量、敏捷、稳定等特点,可为虚拟货币、金融等行业提供专业的k线图信息显示和深度图信息显示,具有很强的实用性和可扩展性。


使用效果

竖屏

img

横屏

img

深度图

img

使用文档

  • PrincekinKline是Swift语言编写的在iOS平台上运行的k线图库组件

安装

CocoaPods

1.使用CocoaPods安装,pod 'PrincekinKlineFrame/PrincekinKline'

2.引入 'import PrincekinKlineFrame'

使用

竖屏

步骤:

1.在你的工程中创建一个类A继承自PKKLineContainerView,PKKLineContainerView是PrincekinKlineFrame竖屏方向上的K线图view;

2.让类A实现PKKLineChangeKlineTypeDelegate代理方法;

3.在类A中创建通过Http请求获取K线图数据,并将获取的K线图数据数据通过从PKKLineContainerView继承来的对象方法initData赋值初始数据;

4.如果使用socket推送更新K线图数据,那么将推送过来的K线图数据通过从PKKLineContainerView继承来的对象方法appendData更新K线图数据;

5.可参考PrincekinKlineFrameDemo
横屏

优点:

PrincekinKline横屏功能和竖屏共用同一数据源,保证了数据的准确性和较小的cpu消耗,同时横屏和竖屏的交互性,
如全部按钮的点击事件已经做好同步,符合实际开发产品的需要,只要按照正确姿势进行使用即可。

步骤:

1.在你的工程中创建一个类A继承自UIViewController,在类A中定义一个PKKLineFullScreenView的对象属性fullView,同时类A实现FullScreenButtonClickDelegate中的全部代理方法;

2.在类A中定义一个PKKLine的数组对象klineArray用于接收数据源;

3.在类A中定义一个竖屏对象kLinePortraitVC;

4.实现类A的横屏状态;

5.一般类A是从竖屏对象中跳转过来,在跳转方法中初始化话一个类A对象,将竖屏对象中数据源赋值给类A对象的klineArray属性,将竖屏对象赋值给类A对象的kLinePortraitVC属性;

6.可参考PrincekinKlineFrameDemo

关于PrincekinKlineFrameDemo说明:

1.我采用的是OHHTTPStubs模拟网络请求,获取K线图的Http数据,可用于开发过程中的网络调试,如果感兴趣可参考 OHHTTPStubs

2.为了实现实时推送的效果,我自己写了一个类SocketStob来模拟Socket的推送,在真实的开发开发环境中,推荐使用第三方库 SocketRocket 来完成iOS的socket连接;

3.虽然有15min、30min、1hour等按钮可以点击,但是我只实现15min的网络数据,在开发过程中,可以更具需要添加网络数据;


  • PrincekinDepthChart是Swift语言编写的在iOS平台上运行的深度图组件

安装

CocoaPods

1.使用CocoaPods安装,pod 'PrincekinKlineFrame/PrincekinDepthChart'

2.引入 'import PrincekinKlineFrame'

优点:

PrincekinDepthChart是作者在实际开发中,自己开发的深度图组件,具有实用性和紧贴深度图开发主流设计等特点,集成起来方便快捷。  

步骤:

可参考PrincekinKlineFrameDemo


许可

PrincekinKlineFrame 是在Apache License 2.0协议下开发完成的. 关于细节请查看Apache License 2.0协议

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].