title: How can i make clickable uiimage?
body: <p>I have one menubar as a uiimage. I want to make 5 menu on this menubar are clickable and link to another view. Can anyone tell me the way i can do that? I found people using uibutton on the uiimage, Is that fine for me and how can i separate the menu bar to 5 pieces.</p>
  
  <p>Thanks for both rmaddy and Brent Royal-Gordon</p>
  
  <p>I decided to use the uiimage as a menubar background and add the uibutton on it. i try some thing like this:</p>
  
  <pre><code>NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle]
                                       pathForResource:@"MOVIE" ofType:@"MP4"]];
  
  MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url];
  
  [[NSNotificationCenter defaultCenter] addObserver:self
                                           selector:@selector(moviePlayBackDidFinish:)
                                               name:MPMoviePlayerPlaybackDidFinishNotification
                                             object:moviePlayer];
  
  moviePlayer.controlStyle = MPMovieControlStyleNone;
  moviePlayer.repeatMode = MPMovieRepeatModeOne;
  moviePlayer.shouldAutoplay = YES;
  moviePlayer.scalingMode = MPMovieScalingModeFill;
  [moviePlayer.view setFrame:CGRectMake(0,0,1330,320)];
  
  [scrollView setBackgroundColor:[UIColor blackColor]];
  [scrollView setContentSize:CGSizeMake(1330,320)];
  [scrollView setScrollEnabled: YES];
  [scrollView setShowsHorizontalScrollIndicator:NO];
  [scrollView setShowsVerticalScrollIndicator:NO];
  
  [scrollView addSubview:moviePlayer.view];
  [self.view addSubview:scrollView];
  
  UIImageView *imageView = [[UIImageView alloc] initWithFrame:image.frame];   
  UIImage *menubar = [UIImage imageNamed:@"BG.jpg"];
  imageView = [[UIImageView alloc] initWithImage:menubar];
  imageView.contentMode = UIViewContentModeScaleToFill;
  imageView.frame = CGRectMake(0, 258, imageView.frame.size.width, 25);
  [self.view addSubview:imageView];
  
  [imageView setUserInteractionEnabled:YES];
  
  UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];   
  [btn setFrame:CGRectMake(0,258,30,25)];
  [btn addTarget:self action:@selector(buttonPress:) forControlEvents:UIControlEventTouchUpInside];
  [btn setTitle:@"HOME" forState:UIControlStateNormal];
  
  [imageView addSubview:btn];
  </code></pre>
  
  <p>but the button is not visible on screen when i run on the simulator. What did i do wrong?</p>