Sha256: 6d8d56ce14caa365c8acca17dc835225500a4c486b16c92bc71f13e168f9057d

Contents?: true

Size: 1.96 KB

Versions: 39

Compression:

Stored size: 1.96 KB

Contents

    //
//  TabbedMainView.m
//  rhorunner
//
//  Created by Dmitry Moskalchuk on 26.03.10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "SplitViewDelegate.h"
#import "SimpleMainView.h"
#import "Rhodes.h"
#import "AppManager.h"

#include "common/RhodesApp.h"
#include "logging/RhoLog.h"

#undef DEFAULT_LOGCATEGORY
#define DEFAULT_LOGCATEGORY "SplitViewDelegate"

@implementation SplitViewDelegate


@synthesize rightController;


// the master view controller will be displayed in a popover
- (void)splitViewController:(UISplitViewController*)svc 
		  popoverController:(UIPopoverController*)pc 
  willPresentViewController:(UIViewController *)aViewController {
	
	//empty for the moment
	
}


//the master view controller will be hidden
- (void)splitViewController:(UISplitViewController*)svc 
	 willHideViewController:(UIViewController *)aViewController 
		  withBarButtonItem:(UIBarButtonItem*)barButtonItem 
	   forPopoverController:(UIPopoverController*)pc {
	
	//[barButtonItem setTitle:@"my title"];
    //self.navigationItem.leftBarButtonItem = barButtonItem;	
	
	
	
	
	
	
	/*
	//if we keep master view in portrait mode we do not need
	//a extra toolbar
	if(svc.keepMasterInPortraitMode == YES)
		return;
	
	if(toolBar == nil) {
		
		//set title of master button
		barButtonItem.title = @"Show Master";
		
		//create a toolbar
		toolBar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, 1024, 44)];
		[toolBar setItems:[NSArray arrayWithObject:barButtonItem] animated:YES];
		
	}
	 UINavigationController
	
	//add the toolbar to the details view
	[detailController.view addSubview:toolBar];
	*/
}


//the master view will be shown again
- (void)splitViewController:(UISplitViewController*)svc 
	 willShowViewController:(UIViewController *)aViewController 
  invalidatingBarButtonItem:(UIBarButtonItem *)button {
	
   //self.navigationItem.leftBarButtonItem = nil;	
	
	
	
	//remove the toolbar
	//if(self.toolBar != nil)
	//	[toolBar removeFromSuperview];
}





@end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
rhodes-3.0.2 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.2.beta.1 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.1 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.1.beta.8 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.1.beta.7 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.1.beta.6 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.1.beta.5 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.1.beta.4 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.1.beta.3 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.1.beta.2 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.0 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.0.beta.7 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.0.beta.6 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.0.beta.5 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.0.beta.4 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.0.beta.3 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.0.beta.2 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-3.0.0.beta.1 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-2.4.1 platform/iphone/Classes/SplitView/SplitViewDelegate.m
rhodes-2.4.1.beta.1 platform/iphone/Classes/SplitView/SplitViewDelegate.m