ViewController不起作用error_load

时间:2014-07-22 16:12:06

标签: ios load viewcontroller

当我调用viewcontroller时,不执行加载指令 不工作

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    self.scrollview.contentSize = CGSizeMake(320, 900);

    [UIView animateWithDuration:0.1f
                          delay:0.0
                        options: UIViewAnimationCurveEaseOut
                     animations:^{
                         [_mnu setFrame:CGRectMake(-168, 57, _mnu.frame.size.width, _mnu.frame.size.height)];
                     }
                     completion:^(BOOL finished){
                         NSLog(@"Done!");
                     }];

}
- (void)viewDidLoad
{

    [super viewDidLoad];

    [_scrollview setContentSize: CGSizeMake (320, 800)];
    self.scrollview.contentSize =CGSizeMake(320, 900);

    [UIView animateWithDuration:0.1f
                          delay:0.0
                        options: UIViewAnimationCurveEaseOut
                     animations:^{
                         [_mnu setFrame:CGRectMake(-168, 57, _mnu.frame.size.width, _mnu.frame.size.height)];
                     }
                     completion:^(BOOL finished){
                         NSLog(@"Done!");
                     }];

   }

尝试这两种方法,但不能正常工作

命令所以调用viewcontroller

EvoViewController *aiv2 = [self.storyboard instantiateViewControllerWithIdentifier:@"EvoViewController"];


    [self presentViewController:aiv2 animated:NO completion:nil];

抱歉我的英文不好

0 个答案:

没有答案