ios - Starts landscape orientation in iPad? -
i have tried ipad application landscape orientation changes in info.plist are
appdelegate.m
- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { self.window = [[uiwindow alloc] initwithframe:[[uiscreen mainscreen] bounds]]; // override point customization after application launch. self.window.backgroundcolor = [uicolor whitecolor]; [self.window makekeyandvisible]; cgrect screenbound = [[uiscreen mainscreen] bounds]; nslog(@"screenbound:%@",nsstringfromcgrect(screenbound)); homecoming yes; }
then screen resolution cgrect screenbound:{{0, 0}, {768, 1024}} want {{0, 0}, {1024, 768}}, how this? please help me
thanks in advance
in .plist instead uiinterfaceorientation
utilize uisupportedinterfaceorientations
, , create landscape orientaation first 1 in uisupportedinterfaceorientations list.
ios xcode ipad orientation landscape
No comments:
Post a Comment