ios 模态视图

    if (IOS5)
    {
        [self presentViewController:navWeibo animated:YES completion:nil];
    }
    else
    {
        [self presentModalViewController:navWeibo animated:YES];
    }

  

if (IOS5)
{
    [self dismissViewControllerAnimated:YES completion:nil];
}
    else
{
    [self dismissModalViewControllerAnimated:YES];
}

  

ios5之前与之后的版本差别

 

GCD

[self presentViewController:m_vcImgPicker animated:YES completion:^(){

        }];

[m_vcImgPicker dismissViewControllerAnimated:YES completion:^(){

        

        NSLog(@"m_mutArrPicList = %d",[m_mutArrPicList count]);

        

    }];

posted @ 2013-11-18 16:24  暖流  阅读(326)  评论(0编辑  收藏  举报