views:

29

answers:

1

Hey all i've tried to add an other view it work properly but it look like a tableview I want it just like the first one how can i change the view to be like what I want not tableview btw this is my flip button code :

- (IBAction)flip:sender{

    // create a new SecondViewController
   SecondViewController *playback = 
   [[SecondViewController alloc] init];

   // set the transition style to fade
   playback.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
   playback.delegate = self; // set playback's delegate to self

   // show the PlaybackViewController
   [self presentModalViewController:playback animated:YES];
   [playback release]; // release the playback PlaybackViewController
} // end method flip:
A: 

SecondViewController *playback

is it a subclass of UITableViewController? if it's a subclass of UITableViewController then it will have a table automatically

David Gao
hey first thank u for answer my question.really I don't know if it's a subclass of UITableViewController , after reading a lot of books and make some google search finally I got this code.
Bobj-C
@bobj-cwell, I am assuming SecondViewController is a class made by you.then in that case you can check out the .h fileis it something like@implementation SecondViewController:UITableViewController?
David Gao