菜鸟教程小白 发表于 2022-12-13 09:28:28

ios - 在商业应用程序中的 iOS 中使用 CorePlot 是否有任何限制?


                                            <p><p>iOS 中要求图形绘制库的大多数堆栈溢出 <a href="https://stackoverflow.com/questions/794562/graph-generation-on-iphone" rel="noreferrer noopener nofollow">questions</a> 都作为答案 <a href="https://github.com/core-plot/core-plot" rel="noreferrer noopener nofollow">CorePlot</a> 。有些人可以追溯到 2012 年,询问是否有替代方案,但答案是 <a href="https://stackoverflow.com/questions/9255592/are-there-any-other-graph-libraries-apart-from-coreplot-for-ios" rel="noreferrer noopener nofollow">dated</a> 并且不全面。几个月前我问过自己这个问题,然后被定向到 CorePlot。</p>

<p>我很难理解为什么 Apple 没有包含用于绘制图形的原生 iOS 框架。撇开这个考虑,我想知道在<strong>商业应用程序</strong>中包含 CorePlot 有多可靠(将来会支持 CorePlot 代码吗?它稳定吗?)。 </p>

<ul>
<li>使用它有哪些<strong>限制</strong>? </li>
<li>是否有任何<strong>可靠</strong>且经过验证的良好替代方案?</li>
<li>如果我决定在应用程序中使用 CorePlot,您有什么建议吗?作为基本步骤,我将以 MVC 模式构建代码,以便在出现更好的库时可以替换该库。不过欢迎提供更多建议(是否有证明对图表有用的特定数据结构?)。</li>
</ul></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>CorePlot 包含一个<strong>许可证</strong>,它详细描述了使用它必须做什么以及可以在哪里使用它:</p>

<pre><code>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 &#34;AS IS&#34; 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.
</code></pre>

<p>所以,详细一点:</p>

<ul>
<li>如果您重新分发源代码,则必须添加 CorePlot 版权声明。</li>
<li>如果您分发二进制文件,则必须在某处显示此许可证,您可以将其放入设置示例或关于页面(甚至 Apple 也这样做)。</li>
</ul>

<p><strong>许可证未提及任何禁止商业用途的规定,而且我知道有多个商业应用程序使用 CorePlot,因此如果您正确包含许可证,则没有任何限制。</strong></p>

<p><em>至于更新,根据<a href="https://github.com/core-plot/core-plot" rel="noreferrer noopener nofollow">GitHub</a> repo,它由多个社区成员积极维护。</em></p>

<p><strong>有几个较小的库可供使用</strong>,但 CorePlot 无疑是最大的一个:</p>

<ul>
<li> <a href="https://github.com/danielgindi/ios-charts" rel="noreferrer noopener nofollow">iOS Charts</a> </li>
<li> <a href="https://github.com/Jawbone/JBChartView" rel="noreferrer noopener nofollow">JBChartView</a> </li>
<li>这篇文章中提到了一些:<a href="https://stackoverflow.com/questions/4724887/ios-chart-libraries" rel="noreferrer noopener nofollow">iOS chart libraries?</a> </li>
</ul>

<p>关于你的第三个问题,它非常主观且非常笼统。我不知道使用图表的任何标准化模式,并且在 Apple 提供用于此的 API 之前可能不会发生。</p>

<p><em>当然,继续使用 MVC,如果您有时间,您甚至可以创建一个图表包装器,这样您就可以轻松地更改内部图表/渲染引擎,如果您认为 CorePlot 不适合您的需求。</em></p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 在商业应用程序中的 iOS 中使用 CorePlot 是否有任何限制?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/31720735/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/31720735/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 在商业应用程序中的 iOS 中使用 CorePlot 是否有任何限制?