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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -