ios - Swift 2: Type of expression is ambiguous without more context -
class example: nsobject, uiviewcontrolleranimatedtransitioning, uiviewcontrollertransitioningdelegate { var aview : uiview! uiview.animatewithduration(duration, delay: 0.0, usingspringwithdamping: 0.8, initialspringvelocity: 0.8, options: nil, animations: { self.aview.transform = cgaffinetransformidentity //this line throwing error mentioned in title }, completion: { finished in transitioncontext.completetransition(true) }) }
this working in earlier version of swift failing in version 2 not sure why
you have change
uiview.animatewithduration(duration, delay: 0.0, usingspringwithdamping: 0.8, initialspringvelocity: 0.8, options: nil, animations: {
with:
uiview.animatewithduration(duration, delay: 0.0, usingspringwithdamping: 0.8, initialspringvelocity: 0.8, options: [], animations: {
there "options" change.
Comments
Post a Comment