MYSTERY ZILLION တွင် English သို့မဟုတ် Unicode ဖြင့်သာ အသုံးပြုခွင့်ရှိသည်။ ဇော်ဂျီ ၊ ဧရာ စသည်တို့ကို အသုံးပြုခွင့် မရှိ။ Unicode fonts များမှာ Mon3,Yunghkio, Myanamr3 စသည်များ အသုံးပြုနိုင်သည်။ Unicode Guide ကို ဒီမှာ Download ချပါ။ Zawgyi to Unicode Converter
Don't share ebook or software if nobody request. You can find free book websites on here. We are welcome for discussion or asking question instead.

Programmatically set orientation

Hi everyone, I have allowed my app in all orientation and for each VC, I set up for portrait.

#pragma mark - Orientation

//ios6
- (BOOL)shouldAutorotate
{
    return NO;
}

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
    return UIInterfaceOrientationPortrait;
}
- (NSUInteger)supportedInterfaceOrientations {
    return UIInterfaceOrientationMaskPortrait;
}

//ios4 and ios5
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

It is because I want to play video in both portrait and landscape like this.

    NSURL *url = [NSURL URLWithString:@"http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT1211/sample_iTunes.mov"];
    
    self.mp = [[MPMoviePlayerViewController alloc]
               initWithContentURL:url];
    
    [self.navigationController presentMoviePlayerViewControllerAnimated:self.mp];

It is okay if I open video and view in both portrait and landscape. The problem is that when I exit video in landscape mode, my viewcontroller - VC will be in landscape mode. I can get notification when video exit but is there a way to tell my VC that it should be back to portrait?

Tagged:
Sign In or Register to comment.