मेरे दृश्य में गलत आयाम हैं। मैं केवल लैंडस्केप चला रहा हूं लेकिन दृश्य पोर्ट्रेट आयामों की रिपोर्ट कर रहा है "देखें चौड़ाई = 768.000000 ऊंचाई = 1024.000000" कोई विचार यह कैसे ठीक करें? मैं चारों ओर autorotate के साथ खेला जाता है मैंमेरा self.view में गलत आयाम हैं
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft|| interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
और
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
यह दृश्य पर ठीक लग रहा है की कोशिश की लेकिन आयाम वास्तव में मेरे अनुप्रयोग के साथ खिलवाड़ कर रहे हैं है।
है कि कैसे आप दृश्य के आकार का हो रही है में देखता है से परिलक्षित होता है? – yuf
self.view.frame.size.width। आदि .. – Jonathan
और आप उस मूल्य को कब पढ़ रहे हैं? – yuf