title: tvOS: Setting focus order
body: <p>I currently have 3 objects called MenuButton that's a child of UIButton. These are defined in a row as shown in the image.</p>
  
  <p><a href="https://i.stack.imgur.com/WheHa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WheHa.png" alt="enter image description here"></a></p>
  
  <p>I've defined the highlight states in my MenuButton -didUpdateFocusInContext:withAnimationCoordinator method:</p>
  
  <pre><code>- (void)didUpdateFocusInContext:(UIFocusUpdateContext *)context
         withAnimationCoordinator:(UIFocusAnimationCoordinator *)coordinator
  {
      if (context.nextFocusedView == self)
      {
          [self setTitleColor:[UIColor whiteColor]
                     forState:UIControlStateNormal];
  
      }
      else if (context.previouslyFocusedView == self)
      {
          [self setTitleColor:[UIColor colorWithRed:25.0/255.0
                                                green:23.0/255.0
                                                 blue:16.0/255.0
                                                alpha:1.0]
                       forState:UIControlStateNormal];
      }
  
  }
  </code></pre>
  
  <p>I've also set canBecomeFocused in the MenuButton object via:</p>
  
  <pre><code>- (BOOL)canBecomeFocused
  {
      return YES;
  }
  </code></pre>
  
  <p>I've set my initial focus button using:</p>
  
  <pre><code>[_camerasButton setNeedsFocusUpdate]
  </code></pre>
  
  <p>When I swipe right on the Simulator remote, I'm not able to get it to focus on Deliveries.</p>
  
  <p>Can someone please explain how I can use UIFocusGuide to implement this correctly in Objective-C?</p>
  
  <p><strong>UPDATE 1</strong>
  Based on JustinVoss' suggestion on the first comment, I set  breakpoint and did a _whyIsThisViewNotFocusable on the debug console. Received this hint:</p>
  
  <pre><code>(lldb) po [(UIView*)0x7ff68054f7c0 _whyIsThisViewNotFocusable] 
  ISSUE: This view may not be focusable because other views or focus guides are occluding it.
  </code></pre>
  
  <p>I'm defining my MenuButton frames as shown:</p>
  
  <pre><code>MenuButton *deliveriesButton = [MenuButton buttonWithType:UIButtonTypeCustom];
      [deliveriesButton setTitle:@"Deliveries" forState:UIControlStateNormal];
      [deliveriesButton setTitleColor:[UIColor colorWithRed:25.0/255.0
                                                   green:23.0/255.0
                                                    blue:16.0/255.0
                                                   alpha:1.0]
                          forState:UIControlStateNormal];
      [deliveriesButton.titleLabel setFont:[Constants lightFontOfSize:39]];
      [deliveriesButton sizeToFit];
  
      deliveriesButton.center = CGPointMake(viewWidth/2,
                                         menuBarHeight / 2);
  
      [self.view addSubview:deliveriesButton];
      _deliveriesButton = deliveriesButton;
  </code></pre>