2011-04-15から1日間の記事一覧

"言語"と"書式"の取得

iOSの設定->一般->言語環境で設定できる"言語"と"書式"の取得方法。 言語 NSLocale.PreferredLanguages配列の一番最初が選択中の言語 string lang = NSLocale.PreferredLanguages[0]; // -> jaとかenとか 書式 System.Threading.Thread.CurrentThread.Curren…

画面の回転に対応する

画面の回転にアプリを対応させるには まずUIViewControllerを継承してShouldAutorotateToInterfaceOrientationをオーバライドする。 public override bool ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation toInterfaceOrientation) { return…