objective c - Xcode does not synthesize property with IOS 8 SDK -
so have custom class working fine in ios 7.
@interface skbbuttonnode : skspritenode @property (nonatomic, strong) sktexture *normaltexture;
it works fine on ios7 , builds in appstore. since ios 8 game crashes on launch. localized problem to:
[skbbuttonnode setnormaltexture:] unrecognized selector sent instance 0x7fb50b6c41d0'
what's this? if synethize property works fine.
i had same problem, , clue borrrden in comments original post helped me figure out how resolve it. looks name conflict normaltexture in ios8 causing crash.
i went through , renamed normaltexture in button node class mynormaltexture (.h , .m files) , resolved issue.
in .h file:
@property (nonatomic, readwrite, strong) sktexture *mynormaltexture;
in .m file create changes to:
(instancetype)initwithtexturenormal:(sktexture *)normal selected:(sktexture *)selected disabled:(sktexture *)disabled
(void)setisenabled:(bool)isenabled
(void)setisselected:(bool)isselected
ios objective-c
No comments:
Post a Comment