iOS中大多数要求图形绘制库的堆栈溢出questions都将其作为答案CorePlot。有些可以追溯到2012年,询问是否有替代方案,但答案是dated,并不全面。几个月前,我问自己这个问题,然后直接转到CorePlot。
我很难理解为什么苹果没有包括本地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当然是最大的库:
对于第三个问题,这是非常主观且非常笼统的。我不知道使用图表的任何标准化模式,除非苹果为此提供API,否则可能不会发生。
当然,继续使用MVC,如果有时间,您甚至可以创建图表包装器,因此,如果您确定CorePlot不适合您的需求,则可以轻松更改内部图表/渲染引擎。
关于ios - 在商业应用程序的iOS中使用CorePlot是否有任何限制?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31720735/