当我调用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];
抱歉我的英文不好