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

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -