में उन्मुखीकरण का समर्थन नहीं मैं इस कोड का उपयोग कर रहाpresentViewController IOS 6
if ([self respondsToSelector:@selector(presentViewController:animated:completion:)])
{
[self presentViewController:navigationControllerCustom animated:YES completion:nil];
}
else
{
[self presentModalViewController:navigationControllerCustom animated:YES];
}
मेरा आवेदन दो उन्मुखीकरण पोर्ट्रेट और उल्टा पोर्ट्रेट है। इस कोड को आईओएस 5.1 के साथ अच्छी तरह से काम करता है, लेकिन उन्मुखीकरण मेरी navigationControllerCustom
वर्ग पर iOS 6
मैं भी इस कोड को शामिल किया है पर काम नहीं करता
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown);
}
-(NSUInteger)supportedInterfaceOrientations
{
return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown);
}
कृपया मेरी मदद इस समस्या को हल करने के लिए।
अग्रिम धन्यवाद।
आईव IOS 6 के लिए संकलित मेरे ऐप्स में एक ही समस्या है; सभी उन्मुखताएं UIInterfaceOrientationPortraitUpsideDown को छोड़कर काम करती हैं; यह अजीब है। – MrJre
@MrJre इस पर एक ही समाधान वास्तव में अजीब है। –