mirror of
https://github.com/zhigang1992/shadowsocks-iOS.git
synced 2026-06-12 00:54:38 +08:00
55 lines
1.5 KiB
Objective-C
55 lines
1.5 KiB
Objective-C
//
|
|
// SettingsViewController.m
|
|
// OnionBrowser
|
|
//
|
|
// Created by Mike Tigas on 5/2/12.
|
|
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import "SettingsViewController.h"
|
|
|
|
@interface SettingsViewController ()
|
|
|
|
@end
|
|
|
|
@implementation SettingsViewController
|
|
@synthesize navBar, tableVC;
|
|
|
|
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
|
{
|
|
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
|
if (self) {
|
|
//tableVC = [[SettingsTableViewController alloc] init];
|
|
[self.view addSubview:tableVC.view];
|
|
[tableVC.view setFrame:CGRectMake(0,
|
|
navBar.bounds.size.height + navBar.bounds.origin.y,
|
|
navBar.bounds.size.width,
|
|
self.view.frame.size.height - navBar.bounds.size.height - navBar.bounds.origin.y)];
|
|
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)viewDidLoad
|
|
{
|
|
[super viewDidLoad];
|
|
// Do any additional setup after loading the view from its nib.
|
|
}
|
|
|
|
- (void)viewDidUnload
|
|
{
|
|
[super viewDidUnload];
|
|
// Release any retained subviews of the main view.
|
|
// e.g. self.myOutlet = nil;
|
|
}
|
|
|
|
- (IBAction)doneButton:(id)sender {
|
|
[self dismissModalViewControllerAnimated:YES];
|
|
}
|
|
|
|
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
|
|
return (IS_IPAD) || (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
|
|
}
|
|
|
|
@end
|