我是新来iPad
开发商,MonoTouch的旋转landscapemode和肖像模式
我已创建使用Xcode 4.
目标C两个或三个iPad
应用程序,但现在我想创建使用Monodeveloper
工具iPad
应用C#
语言...
在其中,我想我的tableView转变orientation
,
我在谷歌搜索,但我没有任何语法。
查看详细见我的屏幕截图...
在第一图像(肖像模式)我的表是extremeLeft,在第二图像(风景模式),我想我的表是在最右边..
我应该怎么做?
我创建的tableview编程,这里是代码片段,
public override void ViewDidLoad()
{
base.ViewDidLoad();
Gainer(); //method call
UITableView Table=new UITableView();
Table.Frame=new RectangleF(20,200,400,400);
Table.Source=new TableViewDataSource(TopGainer); //passing parameter to tableview datasource
this.View.AddSubview(Table);
}
public override bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation)
{
// Return true for supported orientations
return true;
}
任何帮助将不胜感激。
在此先感谢!
我认为你应该通过Montouch教程(http://ios.xamarin.com/Tutorials),如果你知道如何解决ObjC中的事情,你应该很容易能够将它们翻译成C#/ MonoTouch的。 – Krumelur 2012-02-21 18:48:29