objective-c怎么代码触发按钮点击事件
2016-07-24
展开全部
看你想实现什么效果,最基本的用 pushViewController
MyViewController *myView = [[MyViewController alloc] init];
[self.navigationController pushViewController:myView animated:YES];
或者动画
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.4f]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationTransition:UIViewAnimationOptionTransitionNone forView:myView cache:YES];
[myView setCenter:CGPointMake(512, 384)];
[UIView commitAnimations];
MyViewController *myView = [[MyViewController alloc] init];
[self.navigationController pushViewController:myView animated:YES];
或者动画
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.4f]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationTransition:UIViewAnimationOptionTransitionNone forView:myView cache:YES];
[myView setCenter:CGPointMake(512, 384)];
[UIView commitAnimations];
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询