วันศุกร์ที่ 1 มีนาคม พ.ศ. 2556

iOS animation uibutton images


myButton.imageView.animationImages =
[NSArray arrayWithObjects:[UIImage imageNamed:@"image1.png"],
                          [UIImage imageNamed:@"image2.png"],
                          nil];
myButton.imageView.animationDuration = 0.5; //whatever you want (in seconds)
[myButton.imageView startAnimating];

ไม่มีความคิดเห็น:

แสดงความคิดเห็น