Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I want to load second view with given frame size

Tags:

iphone

enter image description here

I try to load Second view in MainView with define frame size but don't need to see component of second view. I set size till it weel be appear.

-(IBAction)displayNewView:(id)sender {

    [mrView setFrame:CGRectMake(0,150,320,50)];
    [self.view addSubview:mrView]; 
}

enter image description here

i dont want to see second button.

like image 680
Mihin Avatar asked Oct 05 '22 09:10

Mihin


1 Answers

If you have Button on Second View. Then It'll display on View when you are loading second view on Main View. Because it's part of Second View.

like image 96
Manann Sseth Avatar answered Oct 10 '22 02:10

Manann Sseth