step-1 : Put the ImageView on ViewController from Object Library.
step-2 : Give meaningful Constraints on ImageView.
step-3 : Give IBOutlet of ImageView. (Like, img_view)
step-4 : If you use array of images than give array of images. Like,
Ex.
var arrImg = ["image_name_1", "image_name_2", "image_name_3"]
step-5 : write following code in ViewDidLoad method.
step-2 : Give meaningful Constraints on ImageView.
step-3 : Give IBOutlet of ImageView. (Like, img_view)
step-4 : If you use array of images than give array of images. Like,
Ex.
var arrImg = ["image_name_1", "image_name_2", "image_name_3"]
step-5 : write following code in ViewDidLoad method.
img_view.animationImages = arrImg
img_view.animationDuration = 4.0
img_view.startAnimating()
Here, img_view is imageView name and arrImg is Array of images.
Thank you...
Thank you...
No comments:
Post a Comment