Question

J'ai créé un UISplitView, après la SPLITVIEW est charge en mode paysage, j'afficher un modalView en utilisant le presentModalView, mon problème est que le modalView est toujours en mode portrait, ne peut pas trouver la solution pour cela.

UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];

il me donne l'orientation du paysage, mais en utilisant

UIDeviceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]

Portrait me donne. (Ne fonctionne pas sous 4,2)

Merci,

Était-ce utile?

La solution

J'utilise un NSTimer et loas ma fonction avec elle et son travail, thats un peu difficile, mais c'est la seule solution que je trouve en ce moment.

[NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(loadingModal:) userInfo:nil repeats:NO];
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top