tags:

views:

61

answers:

1

hi guys i am new to iphone apps development please help me to show another view from one view using buttons

A: 

Thats a very vague question... here is a start - you can look up some of the syntax and research a bit:

this in viewDidLoad:

UIButton *button  = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[button setTitle:@"Click" forState:UIControlStateNormal];
[button addTarget:self action:@selector(showView) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:button];
[button release];

then this method

- (void)showView {
    UIView *view = [[UIView alloc] initWithFrame:CGRect(0,0,320,460)];
    [self.view addSubview:view];
    [view release];
}

if you want to push a view controller then you need to look up navigation controllers and the method pushViewController:animated:

Thomas Clayson