मेरे पास एक टैबबार आधारित ऐप है।टैबबार ऐप में परिदृश्य में दृश्य कैसे घुमाएं
मैं इंटरफेस बिल्डर में 2 दृश्य, एक चित्र में और दूसरा लैंडस्केप मोड में बनाता हूं।
अब, मैं आईपॉड ऐप की तरह कुछ चाहता हूं। मैं परिदृश्य दृश्य पूर्णस्क्रीन होना चाहता हूं, और टैबबार & स्टेटस बार छुपाएं।
मैं इस के बुनियादी काम करने के लिए करते हैं:
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
duration:(NSTimeInterval)duration {
if (self.landscape) {
if (toInterfaceOrientation == UIInterfaceOrientationPortrait)
{
self.view = self.portrait;
self.view.transform = CGAffineTransformMakeRotation(degreesToRadian(360));
}
else if (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft)
{
self.view = self.landscape;
self.view.transform = CGAffineTransformMakeRotation(degreesToRadian(-90));
}
else if (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight)
{
self.view = self.landscape;
self.view.transform = CGAffineTransformMakeRotation(degreesToRadian(90));
}
else
{
self.view = self.portrait;
self.view.transform = CGAffineTransformMakeRotation(degreesToRadian(-180));
}
}
}
लेकिन सब गंदा काम करते हैं। लैंडस्केप व्यू सही ढंग से क्षेत्र को भरता नहीं है और नियंत्रण गलत स्थानों में स्थित हैं, जो पहले des desned के रूप में अलग हैं।
इसके अलावा, मैं अभी भी नहीं एक तरह से सब कुछ छिपाने के लिए
setStatusBarHidden:(BOOL)
एक UIApplication संदर्भ पर
बुला, इसलिए तरह से मिला ...
इसके लिए धन्यवाद !! – mobius