it is more curiosity than a real problem because it works. But i don't understand xcode warning. In my application I use addChildViewController so i have a child and a parent. In my child, I had a UIButton and i wanted to event a parent's function : it works but xcode says undeclared selector parentFunction :/ I can declare this function to erase this warning but it will be dead code (bad way). Or I can use a delegate, but why use delegate when you have a direct link.
[btn addTarget:self.parentViewController action:@selector(parentFunction:) forControlEvents:UIControlEventTouchUpInside]; //undeclared selector parentFunction
Best regards
Thx