views:

35

answers:

0

Hi to all, i have created a music application where i dynamically image view and created buttons and dynamically added scrollview to it.now to this main veiw i have added a view and an image view and a button and i want that my dynamically add imageview and buttons should scroll from behind the view that i have added now to the view.Please help me in solving this problem.

This is my code of dynamically adding button to the view

b1 = [[UIButton alloc] initWithFrame:CGRectMake(0,63, 320, 73)];    
 [b1 setBackgroundImage:[UIImage imageNamed:@"k1.png"] forState:UIControlStateNormal];
 [b1 addTarget:self action:@selector(buttonPressed1:) forControlEvents: UIControlEventTouchUpInside];  
    [views addSubview:View1];
 [views addSubview:b1];
 [b1 release];

Please anybody help me as soon as possible