xcode - Increasing an images size over time? -
i have image needs increase in size on time. how go doing that?
var timer = nstimer.scheduledtimerwithtimeinterval(0.4, target: self, selector: selector("grow"), userinfo: nil, repeats: true)
for actual function confused how write it.
if want fluid animation, use this:
uiview.animatewithduration(0.4, animations: { () -> void in imageview.transform = cgaffinetransformmakescale(2.0, 2.0) })
Comments
Post a Comment