我的看法布局http://i.imgur.com/PkZ9P.png我怎么能在所有视图中移动标签
-(IBAction)tapview:(id)sender
{
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:1];
CGRect frame = labelgreen.frame;
frame.origin.y -= 200;
labelgreen.frame = frame;
[UIView setAnimationDidStopSelector:@selector(forview1)];
[UIView commitAnimations]; }
但是当标签移动它只能移动内部厂景或视图2或视图3, 我想告诉所有视图移动到颜色查看
我该怎么办?
和动画完成后,它应该运行功能-(void)forview1
但功能不是叫
-(void)forview1
{colorview.backgroundcolor=changecolor;}
谢谢
[UIView的setAnimationDidStopSelector:@selector(forview1)]; 我尝试但不工作。 – MAXZZXAM
是否在.h文件中声明该方法 –
不,我只是声明,但我尝试在.h中声明并且它工作正常。谢谢你 – MAXZZXAM