ios - Child view controller elements not visible in delegate call back method -
This is my scenario, I have a child view controller to see the controller b
and B
, I am creating an NSURL session call and send the asynchronous response to the main thread on the response
dispatch_async (dispatch_get_main_queue (), ^ {// call call back delegation method [self Delegate cllBackMethod];}
In view controller B. I am setting the representative as myself and this call back Method defining method
- (zero) callBackMethod {NSLog (@ "% @", self header label); self.headerLabel.hidden = YES;}
< / Pre>If i
b
as a child's view controllera
, its logging (null) and i can not access b elements, but If I make it from theB
toA
as a child view controller, I am capable of reaching these elements and amending itWhy is this happening? And how can I fix it?
Comments
Post a Comment