Guruparan
Guruparan

Reputation: 71

How to present a tabview controller?

Hi i have a tab based application what i have done is put another view as the welcome screen and i've made it to load first, the problem is i dont know how to call the tabview controller from the view i have created.

the presentmodal view controller it only show the firstview

this is what i have in my .m file

-(IBAction) next_OnClick
{
  FirstView *f=[[FirstView alloc] init];
  [self presentModalViewController:f animated:YES];

}

Please tell me the correct way to do this?

Upvotes: 0

Views: 182

Answers (1)

danh
danh

Reputation: 62686

When FirstView (it should be called FirstViewController) decides it's time to go away, it can do this:

[self dismissModalViewControllerAnimated:YES];

Upvotes: 1

Related Questions