如何让 MGSplitViewController 在 Monotouch 中工作?
我在这里下载了 MGSplitViewController 项目: https://github.com/mattgemmell/MGSplitViewController
以及此处的绑定: https://github.com/mono/monotouch-bindings/tree/master/MGSplitViewController
我从哪里获取“a”文件?如果我在 Xcode 中构建项目,我会得到一个“app”文件,即控制器的演示。
另外:我必须为什么目标构建“a”文件?模拟器和 iPhone 分别有一个吗?
I downloaded the MGSplitViewController project here:
https://github.com/mattgemmell/MGSplitViewController
and the bindings here:
https://github.com/mono/monotouch-bindings/tree/master/MGSplitViewController
Where do I get the "a" file from? If I build the project in Xcode I get an "app" file, a demo of the controller.
Also: what target do I have to build the "a" file for? A separate one for Simulator and one for iPhone?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
编辑:下面链接的项目已被删除。如今,您可以使用视图控制器包含轻松创建自己的嵌套视图控制器。
好吧,我自己添加另一个答案,虽然我认为 Poupos 的答案是有效的,但我找到了一个更适合我的需求的解决方案:我将 MGSplitViewController 转换为 Monotouch。 :-)
它可以作为 MTSplitViewController 在 GitHub 上 https://github.com/Krumelur/MTSplitViewController
我真的希望如此也帮助别人。
EDIT: The project linked below has been deleted. You can easily create your own nested view controllers these days by using view controller containment.
Alright, I'll add an another answer myself, although I consider Poupos's answer a valid one but I found a solution that fits my needs even better: I converted MGSplitViewController to Monotouch. :-)
It is available as MTSplitViewController on GitHub at https://github.com/Krumelur/MTSplitViewController
I really hope it helps others, too.
GIT 中的源代码看起来并没有提供用于创建库的 Xcode 项目文件,而只是一个应用程序:包括示例和控件。
您需要首先将源(部分)(/MGSplitViewController/ 下的内容)构建为静态库(新项目)。如果您使用 FAT 库,那么您可以包含 i386、armv6 和 armv7 二进制文件 - 这将使您以后更容易在 MonoTouch 项目中使用。
It does not look like the source code in GIT provides the Xcode project file to create a library, only an application: that includes the sample and the control.
You'll need to build (part of) the source (stuff under /MGSplitViewController/) as a static library first (new project). If you use a FAT library then you can include both i386, armv6 and armv7 binaries - which will make it easier to use afterward with your MonoTouch project.