iOS 中要求图形绘制库的大多数堆栈溢出 questions 都作为答案 CorePlot 。有些人可以追溯到 2012 年,询问是否有替代方案,但答案是 dated 并且不全面。几个月前我问过自己这个问题,然后被定向到 CorePlot。
我很难理解为什么 Apple 没有包含用于绘制图形的原生 iOS 框架。撇开这个考虑,我想知道在商业应用程序中包含 CorePlot 有多可靠(将来会支持 CorePlot 代码吗?它稳定吗?)。
CorePlot 包含一个许可证,它详细描述了使用它必须做什么以及可以在哪里使用它:
Copyright (c) 2014, Drew McCormack, Brad Larson, Eric Skroch, Barry Wark, Dirkjan Krijnders, Rick Maddy, Vijay Kalusani, Caleb Cannon, Jeff Buck, Thomas Elstner, Jeroen Leenarts, Craig Hockenberry, Hartwig Wiesmann, Koen van der Drift, Nino Ag, Mike Lischke, Trevor Harmon, Travis Fischer, Graham Mueller, Rafał Wójcik, Mike Rossetti, Michael Merickel, Ingmar Stein, and Victor Martin Garcia.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the Core Plot Project nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
所以,详细一点:
许可证未提及任何禁止商业用途的规定,而且我知道有多个商业应用程序使用 CorePlot,因此如果您正确包含许可证,则没有任何限制。
至于更新,根据GitHub repo,它由多个社区成员积极维护。
有几个较小的库可供使用,但 CorePlot 无疑是最大的一个:
关于你的第三个问题,它非常主观且非常笼统。我不知道使用图表的任何标准化模式,并且在 Apple 提供用于此的 API 之前可能不会发生。
当然,继续使用 MVC,如果您有时间,您甚至可以创建一个图表包装器,这样您就可以轻松地更改内部图表/渲染引擎,如果您认为 CorePlot 不适合您的需求。
关于ios - 在商业应用程序中的 iOS 中使用 CorePlot 是否有任何限制?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31720735/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) | Powered by Discuz! X3.4 |