本文介绍了如何限制cpxygraph中+ ve部分的滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是核心绘图SDK的新手,在我的应用程序中实现了核心绘图。我需要限制 - 图的一部分。也就是说,我总是会对图((1,1),(10,15),(20,15))有+ ve值,我只需要水平,垂直滚动+ ve部分。所以我想限制剩下的3部分的图。我尝试了所有方式帮助较少,所以张贴在这里。如果有人已经完成了这种类型的要求,请尽快帮助我。



预先致谢。

解决方案

限制滚动范围的最简单方法是设置 globalXRange globalYRange 属性在您的剧情空间。如果你想更多的控制,你可以使用一个剧情空间委托。 CPTestApp(Mac版)演示了这两种技术。

I am new to core plot SDK, implemented core plot in my app. i need to restrict -ve part of graph. i.e always i will have +ve values for graph((1,1),(10,15),(20,15)).i need horizontal , vertical scrolling for +ve part only.So i want to restrict remaining 3 parts of graph. I tried in all ways help less, so posted here. if any one already done with this type requirement, please help me ASAP.

Thanks in advance.

解决方案

The easiest way to restrict the scrolling ranges is to set the globalXRange and globalYRange properties on your plot space. If you want more control, you can use a plot space delegate. CPTestApp (the Mac version) demonstrates both techniques.

这篇关于如何限制cpxygraph中+ ve部分的滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 02:31