title: Button actions in subview having "unrecognized selector sent to instance" error
body: <p>Here is my scenario:</p>
  
  <pre><code>Main VC : Scroll View : [Multiple] MyPage : [Multiple] ObjectView : [Multple] UIButton
  </code></pre>
  
  <p>I have my main view controller containing a <code>UIScrollView</code>.  The Scroll view is supposed to load multiple "<code>MyPage</code>" Views with pagingEnabled.   I use the IB to create the "<code>MyPage</code>" interface (<code>MyPage.xib</code>) and view controller files (<code>MyPage.h &amp;.m</code>).  <code>MyPage.xib</code> file owner is set to MyPage.  This "<code>MyPage</code>" will again load multiple ObjectView which again I created through IB with (<code>ObjectView.xib</code>, <code>ObjectView.h</code>, <code>ObjectView.m</code>)</p>
  
  <p>Both of the MyPage &amp; ObjectView class are subclass of UIViewController which hold some of my data properties.</p>
  
  <p>The ObjectView class have several buttons and I have those button Touch Up actions connected by control drag the button to my ObjectView.h.</p>
  
  <p>In my Main VC's viewDidLoad method, I have a loop that will add all the pages:</p>
  
  <pre><code>- (void)viewDidLoad {
    ...
    for (int i=0; i&lt;numPages; i=i+1) {
      MyPage *spg =[[MyPage alloc]i init];
      ...definition of spg properties...
      [spg loadPage:i+1];
      [scrollView addSubview:spg.view];
    }
  }
  </code></pre>
  
  <p>In the MyPage loadPage method, I have a loop that will add all the ObjectView</p>
  
  <pre><code>- (void) loadPage:(int) x {
    ...
    for (int i=0; i&lt;numObjects; i++) {
      ObjectView *objvc = [[ObjectView alloc] init];
      ... defining objvc frame coordinates &amp;&amp; other properties ...
      [self.view addSubview:objvc.view];
    }
  }
  </code></pre>
  
  <p>In ObjectView, there are several buttons and I connect those buttons to TouchUp actions in IB through Ctrl-Drag the buttons to my ObjectView.h.</p>
  
  <p>The App is successfully build, the scroll view did load, all pages and all objects are displayed nicely.  However, when I touch the buttons the following run-time error appears:</p>
  
  <p>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: </p>
  
  <blockquote>
    <p>-[TitleLayouer touchBtnOnline:]: unrecognized selector sent to instance 0x17f810'</p>
  </blockquote>
  
  <p>I try to put break point on my first statement in my button action method, however that break point cannot even be reached.</p>
  
  <p>Hope someone can help me with this issue.</p>