sto cercando di animare i limiti di un'UIButton utilizzando Facebook pop POPSpringAnimation, ma non riesco a trovare quello che dovrei usare in rapido in sostituzione di NSValue.valueWithCGRectSwift NSValue.valueWithCGRect
Questo è quello che ho' m cercando di fare:
@IBAction func buttonTapped(sender : UIButton) {
var springAnimation = POPSpringAnimation()
springAnimation.property = POPAnimatableProperty.propertyWithName(kPOPLayerBounds) as POPAnimatableProperty
springAnimation.springBounciness = 12.0
springAnimation.springSpeed = 10.0
springAnimation.toValue = NSValue.valueWithCGRect(newBounds)
shutterButton.pop_addAnimation(springAnimation, forKey: "size")
}
Dov'è questo documentato? Non ottengo risultati per questo con completamento automatico o – rounak
Grazie, ha funzionato benissimo. –
@rounak: https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithObjective-CAPIs.html#//apple_ref/doc/uid/TP40014216-CH4-XID_27 – newacct