Hi,
I am new with XCode, But i really want to make this app perfect. so i have a question for you guys.
I'm making a application with a tabbar and tableview in it.
but i started with the tabbar application from File>New Project> Tabbar Application.
And in this application i want to make a tablevieuw but i have 3 controllers.
FirstViewController.m +.h
SecondViewController.m +h
ThirdViewController.m + .H
+ the XIB files.
Now in the secondviewcontroller i want to make a tablevieuw.
This is the code that i have:
Code:
#import "SecondViewController.h"
@implementation SecondViewController
@synthesize problems;
- (void)viewDidLoad {
[super viewDidLoad];
self.problems = [[NSArray alloc] initWithObjects:@"Clancy, Thomas",
@"Lehane, Dennis", nil];
self.title = @"Authors";
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
// self.navigationItem.rightBarButtonItem = self.editButtonItem;
}
/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad
{
[super viewDidLoad];
}
*/
- (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
- (void)didReceiveMemoryWarning
{
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc. that aren't in use.
}
- (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (void)dealloc
{
[super dealloc];
}
@end
I really hope if you guys could help me.
Thanks