在objective-c中移动imageView

在objective-c中移动imageView,objective-c,Objective C,我正试着按一个按钮让鸟跳起来。但我不知道该怎么做。我创建了一个计时器,但我不知道如何使用它 int birdFlight; @interface BirdViewController : UIViewController { IBOutlet UIButton *flyButton; IBOutlet UIImageView *bird; NSTimer *birdMovement; } -(IBAction)buttonBirdFly:(id)sender;

我正试着按一个按钮让鸟跳起来。但我不知道该怎么做。我创建了一个计时器,但我不知道如何使用它

int birdFlight;

@interface BirdViewController : UIViewController
{

    IBOutlet UIButton *flyButton;
    IBOutlet UIImageView *bird;

    NSTimer *birdMovement;

}

-(IBAction)buttonBirdFly:(id)sender;


@end
如何使用这种方法

    @implementation BirdViewController

    -(IBAction)buttonBirdFly:(id)sender
    {


    }

也许你应该先上几节编程基础课?您没有创建计时器,只是定义了一个。您需要的是一个方法,该方法可以移动您的图像视图,并使用计时器调用该方法