klefevre
klefevre

Reputation: 8735

How display progressively an UIImageView

I find a way to display progressively an UIImageView like that :
enter image description here -> enter image description here

I don't necessarily want to animate it, but I can't find a way to display only a part of an UIImageView by only play with its frame or contentMode property.
Any suggestion ?

Upvotes: 0

Views: 234

Answers (2)

klefevre
klefevre

Reputation: 8735

Well, I've found my response :

UIImageView in UIView and not to display image parts out of bounds

Upvotes: 0

PgmFreek
PgmFreek

Reputation: 6402

Put a UIView over the imageview and change the uiview frame accordingly.

Upvotes: 1

Related Questions