के साथ समस्या यदि मेरा आईपैड लैंडस्केप मोड में है और वर्तमान मॉड्यूल व्यू कंट्रोलर को दृश्य को स्वचालित रूप से पोर्ट्रेट मोड में बदल दिया जाता है। कोई समाधान?वर्तमान मॉड्यूल व्यू कंट्रोलर
UIViewController * start = [[UIViewController alloc]initWithNibName:@"SecondView" bundle:nil];
start.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
start.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:start animated:YES];
SecondView में मैं पहले से ही जोड़ दिया है:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
यह मेरे साथ भी हुआ है - मुझे अभी तक यह पता नहीं चला है, इसलिए उम्मीद है कि कोई जवाब देता है :) – Conceptdev
समाधान बहुत आसान है: इंटरफ़ेस बिल्डर में जाएं और अपने क्लास के साथ अपने व्यू कंट्रोलर को सही तरीके से कनेक्ट करें। यह मेरे लिए काम किया –