Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

working commit

  • Loading branch information...
commit d416292b48148e49db3674b4bb0c06121a9b43fc 1 parent 73ed80a
@aashidham authored
View
4 accounting/accountingAppDelegate.h
@@ -17,8 +17,8 @@
@property (nonatomic, retain) UIWindow *window;
@property (nonatomic, retain) UISegmentedControl* segmentedControl;
@property (nonatomic, retain) UINavigationController *navigationController;
-@property (nonatomic, retain) RootViewController* rVC;
-@property (nonatomic, retain) CalendarViewController* cVC;
+//@property (nonatomic, retain) RootViewController* rVC;
+//@property (nonatomic, retain) CalendarViewController* cVC;
- (NSArray*)toolBarItems;
View
10 accounting/accountingAppDelegate.m
@@ -14,14 +14,14 @@ @implementation accountingAppDelegate
@synthesize navigationController;
@synthesize window=_window;
-@synthesize segmentedControl,cVC,rVC;
+@synthesize segmentedControl;//,cVC,rVC;
#pragma mark -
#pragma mark Helper Methods
- (void) firstPane
{
- NSArray * theViewControllers = [NSArray arrayWithObject:self.cVC];
+ NSArray * theViewControllers = [NSArray arrayWithObject:[[CalendarViewController alloc]init]];
[self.navigationController setViewControllers:theViewControllers animated:NO];
}
@@ -36,7 +36,7 @@ - (void)indexDidChangeForSegmentedControl:(UISegmentedControl *)aSegmentedContro
}
case 1:
{
- NSArray * theViewControllers = [NSArray arrayWithObject:self.rVC];
+ NSArray * theViewControllers = [NSArray arrayWithObject:[[RootViewController alloc]init]];
[self.navigationController setViewControllers:theViewControllers animated:NO];
break;
}
@@ -68,8 +68,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
{
// Override point for customization after application launch.
// Add the navigation controller's view to the window and display.
- self.cVC = [[CalendarViewController alloc] init];
- self.rVC = [[RootViewController alloc] init];
NSArray* topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"SegmentedControl" owner:self options:nil];
self.segmentedControl = [topLevelObjects objectAtIndex:0];
self.navigationController = [[UINavigationController alloc] init];
@@ -88,8 +86,6 @@ - (void)dealloc
[_window release];
[segmentedControl release];
[navigationController release];
- [rVC release];
- [cVC release];
[super dealloc];
}
View
BIN  helicopter.xcodeproj/project.xcworkspace/xcuserdata/aashidham.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.