ios - IBOutlets deallocated after modal view controller -
i have couple of iboutlets in viewcontroller class, declared this:
@property (nonatomic, retain) iboutlet uilabel* labelhoststatus; @property (nonatomic, retain) iboutlet uibutton* connectbutton; @property (nonatomic, retain) iboutlet uitextfield* fieldaddress; @property (nonatomic, retain) iboutlet uitextfield* fieldport;
(and of course @synthesize
'd)
everything working great, , can access iboutlets in code, , get/set texts , stuff.
at point decide present modal view controller, goes ok. however, after dismissing modal view controller , coming main controller, can't seem access above mentioned outlets anymore. excepctions , crashes when trying so:
2013-05-13 22:39:47.359 [7267:c07] -[__nscfstring text]: unrecognized selector sent instance 0x885aa30
whats wrong? :(
oh my, nevermind. figured i've released parent view in modal view controller class after it's been dismissed. d'oh!
Comments
Post a Comment