我是新來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