MonoTouch 核心图绑定
我在 MonoTouch 中使用 Core-Plot 库时遇到问题。我使用 this 作为 MonoTouch 绑定的起点。对我来说,绑定似乎尚未完成。
我想念像 CPXYGraph 和 CPGraphHostingView 这样的类...可能我不需要 CPXYGraph 类,但是如何创建 CPGraph 的实例?
有人在 MonoTouch 中成功使用 Core-Plot 和/或有例子吗?
您会推荐其他哪些 MonoTouch 绘图解决方案? (我无法使用谷歌图表 API,因为它不能保证互联网连接可用)
编辑:
这是我遇到问题的一些示例代码:
CPTheme theme = CPTheme.ThemeNamed("Plain Black"); // Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type.
CPGraph graph = (CPGraph)theme.NewGraph();
我使用 Core绘制 Alpha Release 0.2.2 版本并链接到:
-gcc_flags "-L${ProjectDir} -lCorePlot -force_load "${ProjectDir}/libCorePlot.a" -ObjC"
I have trouble with using the Core-Plot library in MonoTouch. I use this as a starting point for my MonoTouch binding. For me it seems the binding isn't finished.
I miss classes like CPXYGraph and CPGraphHostingView... Probably I don't need the CPXYGraph class, but how do I create an instance of CPGraph?
Does anyone succesfully used Core-Plot in MonoTouch and/or have an example?
Wich other solutions for plotting in MonoTouch would you recommend? (I can't use the google chart api, because it isn't guaranted that an Internet connection is available)
Edit:
Here is some example code I have problems with:
CPTheme theme = CPTheme.ThemeNamed("Plain Black"); // Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type.
CPGraph graph = (CPGraph)theme.NewGraph();
I use the Core Plot Alpha Release 0.2.2 version and link with:
-gcc_flags "-L${ProjectDir} -lCorePlot -force_load "${ProjectDir}/libCorePlot.a" -ObjC"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您等待 MonoTouch 4.0 的第二个 alpha,您将能够运行我添加到构建中的新示例,该示例具有完整的工作设置,并且我添加了缺少的各种绘图类型。
If you wait for the second alpha of MonoTouch 4.0, you will be able to run the new sample that I added to the build which has a full working setup and I added various plot types that were missing.