ios - warning : will never be excuted -


i updated old swift 1 app swift 2 using xcode 7 , i'm getting few warnings not there before updated.

 required init(coder adecoder: nscoder) {      fatalerror("init(coder:) has not been implemented")      // swift 2 update     state = .optionsvisible     super.init(coder: adecoder)! } 

that function giving me 2 warnings both state , super lines not executed, i'm not sure why? figured changed between swift 1 , 2, i'm not sure what.

thanks!

fatalerror flagged @noreturn, compiler can tell nothing after executed.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -