UIViewController

    [self presentViewController:picker animated:YES
                     completion:^
    {

    }];


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
動的生成
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
UIViewController* object = (UIViewController*)[[NSClassFromString(@"NameofClass") alloc] init];


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
画面遷移
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
// 表示
ViewController *vc = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
vc.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
//vc.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
//vc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentViewController:vc animated:YES completion:nil];

// 戻る
[self dismissViewControllerAnimated:YES completion:nil];


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
回転処理制御
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
/**
*  回転処理の有無を返す
*  @param 無し
*  @return 無し
*/
- (BOOL)shouldAutorotate
{
    return YES;
}


/**
*  回転させる向きを返す
*  @param 無し
*  @return 無し
*/
- (NSUInteger)supportedInterfaceOrientations
{

    // 全方向
    return UIInterfaceOrientationMaskAll;

    // 横画面固定
//    return UIInterfaceOrientationMaskLandscape;
    
    // 縦画面固定
//    return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
}


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
AppDelegateの通知を受ける方法(アクティブ以外もできる)
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

/**
ロード時に呼ばれる
*/
- (void)viewDidLoad
{
    // 通知設定(アクティブ)
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationDidBecomeActive)
                                                 name:UIApplicationDidBecomeActiveNotification object:nil];
}

/**
デストラクタ
*/
- (void)dealloc
{
    // 通知解除(アクティブ)
    [[NSNotificationCenter defaultCenter] removeObserver:self
                                                    name:UIApplicationDidBecomeActiveNotification
                                                  object:nil];
}

#pragma mark - UINotification
/**
アクティブ直後に呼ばれる
*/
- (void)applicationDidBecomeActive
{
    //
    // アクティブ時に実行したい処理
    //
}
最終更新:2018年02月22日 10:52