title: create horizontal scrolling UIButton in iOS using UIScrollView in ios 7
body: <p>I'm new to ios development now want give a horizontal scrolling button in my app i dont no wt is the correct method to do it can any pls tell how to make it </p>
  
  <p>this is the code i have tried to create a uibutton horizontal pro grammatically but its now working its throughing a warning</p>
  
  <blockquote>
    <p>undeclared selector newView</p>
  </blockquote>
  
  <p>i dont know wt i have to code in newview to make the button scroll im using more than four button i want all the buttons to be scroll in horizontal but i not able to make i have tried to create using one button </p>
  
  <p>this is the code i have used in the view didload</p>
  
  <pre><code>   UIScrollView *scrollview =[[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)];
       scrollview.showsHorizontalScrollIndicator=YES;
       scrollview.userInteractionEnabled=YES;
       scrollview.scrollEnabled=YES;
  
      UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
      [button addTarget:self action:@selector(newView:)   forControlEvents:UIControlEventTouchDown];
  
      [button setTitle:@"Excavations" forState:UIControlStateNormal];
     button.frame = CGRectMake(80.0, 210.0, 160.0, 40.0);
  
     [self.view addSubview:scrollview];
     scrollview.contentSize = CGSizeMake(320,960);
  </code></pre>
  
  <p>can any one pls tell me wt is the right way to make the horizontal scroll wheather i have use the uiscorllview and buttons in my storyboard and how to make into scroll the buttons</p>
  
  <p>i have no idea to make im very confused by seening many tutorial sampel like thisone <a href="http://docs.xamarin.com/recipes/ios/content_controls/scroll_view/create_a_horizontal_scrolling_button_list/" rel="nofollow">link
  </a></p>