mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
		
		
			
		
	
	
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
| 
											8 years ago
										 | //
 | ||
| 
											7 years ago
										 | //  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
 | ||
| 
											8 years ago
										 | //
 | ||
|  | 
 | ||
|  | #import <UIKit/UIKit.h>
 | ||
|  | 
 | ||
| 
											8 years ago
										 | NS_ASSUME_NONNULL_BEGIN | ||
|  | 
 | ||
| 
											8 years ago
										 | // Any view controller which wants to be able cancel back button
 | ||
|  | // presses and back gestures should implement this protocol.
 | ||
| 
											8 years ago
										 | @protocol OWSNavigationView <NSObject> | ||
|  | 
 | ||
| 
											8 years ago
										 | // shouldCancelNavigationBack will be called if the back button was pressed or
 | ||
|  | // if a back gesture was performed but not if the view is popped programmatically.
 | ||
| 
											8 years ago
										 | - (BOOL)shouldCancelNavigationBack; | ||
| 
											8 years ago
										 | 
 | ||
|  | @end | ||
|  | 
 | ||
|  | #pragma mark -
 | ||
|  | 
 | ||
|  | // This navigation controller subclass should be used anywhere we might
 | ||
|  | // want to cancel back button presses or back gestures due to, for example,
 | ||
|  | // unsaved changes.
 | ||
|  | @interface OWSNavigationController : UINavigationController | ||
|  | 
 | ||
| 
											7 years ago
										 | // If set, this property lets us override prefersStatusBarHidden behavior.
 | ||
|  | // This is useful for supressing the status bar while a modal is presented,
 | ||
|  | // regardless of which view is currently visible.
 | ||
|  | @property (nonatomic, nullable) NSNumber *ows_prefersStatusBarHidden; | ||
|  | 
 | ||
| 
											8 years ago
										 | @end | ||
| 
											8 years ago
										 | 
 | ||
|  | NS_ASSUME_NONNULL_END |