How do I call - (void) viewDidAppear:(BOOL)animated from another method?
cocoa-touch, iphone, objective-c
Solution
I think I understand what you're asking... the question is.. well not there. Nonetheless:
What I think you're asking: "How do I call viewDidAppear from within another method...?"
- (void)pickAndDecodeFromSource:(UIImagePickerControllerSourceType)sourceType
{
...
[myController viewDidAppear:YES]; //Simply call it on whatever instance of a controller you have
...
}
If the question was actually "How do I override viewDidAppear?" then this is it:
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
//YOUR STUFF
//GOES HERE
}
Problem
It is possible to call one method from inside another. I've implemented this function ``` - (void)pickAndDecodeFromSource:(UIImagePickerControllerSourceType) sourceType ``` I want to call following method inside the above one. ``` - (void) viewDidAppear:(BOOL)animated ```