NSArray *segItem = [NSArray arrayWithObjects:@"하나",@"둘",@"셋",@"넷",nil];
UISegmentedControl *sc = [[UISegmentedControl alloc] initWithItems:segItem];
sc.segmentedControlStyle = UISegmentedControlStyleBar;
sc.momentary = NO;
[sc addTarget:self action:@selector(segAction:) forControlEvents:UIControlEventValueChanged];
self.navigationItem.titleView = sc;
self.title = @"Hello";
self.navigationItem.titleView = [[[UILabel alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 120.0f, 36.0f)] autorelease];
self.title = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleName"];
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"실행" style:UIBarButtonItemStylePlain target:self action:@selector(exec:)] autorelease];
self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"실행" style:UIBarButtonItemStylePlain target:self action:@selector(exec:)] autorelease];
#define BarButton(title,selector) [[[UIBarButtonItem alloc] initWithTitle:title style:UIBarButtonItemStylePlain target:self action:selector] autorelease]
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
UIDeviceOrientationUnknown
UIDeviceOrientationPortrait
UIDeviceOrientationPortraitUpsideDown
UIDeviceOrientationLandscapeLeft
UIDeviceOrientationLandscapeRight
UIDeviceOrientationFaceUp
UIDeviceOrientationFaceDown