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

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -