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.
		
		
		
		
		
			
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Objective-C
		
	
| //
 | |
| //  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
 | |
| //
 | |
| 
 | |
| #import <UIKit/UIKit.h>
 | |
| 
 | |
| NS_ASSUME_NONNULL_BEGIN
 | |
| 
 | |
| extern const NSUInteger kMin2FAPinLength;
 | |
| extern const NSUInteger kMax2FAPinLength;
 | |
| extern NSString *const TappedStatusBarNotification;
 | |
| 
 | |
| @interface ViewControllerUtils : NSObject
 | |
| 
 | |
| - (instancetype)init NS_UNAVAILABLE;
 | |
| 
 | |
| // This convenience function can be used to reformat the contents of
 | |
| // a phone number text field as the user modifies its text by typing,
 | |
| // pasting, etc.
 | |
| //
 | |
| // "callingCode" should be of the form: "+1".
 | |
| + (void)phoneNumberTextField:(UITextField *)textField
 | |
|     shouldChangeCharactersInRange:(NSRange)range
 | |
|                 replacementString:(NSString *)insertionText
 | |
|                       callingCode:(NSString *)callingCode;
 | |
| 
 | |
| + (void)ows2FAPINTextField:(UITextField *)textField
 | |
|     shouldChangeCharactersInRange:(NSRange)range
 | |
|                 replacementString:(NSString *)insertionText;
 | |
| 
 | |
| + (NSString *)examplePhoneNumberForCountryCode:(NSString *)countryCode callingCode:(NSString *)callingCode;
 | |
| 
 | |
| @end
 | |
| 
 | |
| NS_ASSUME_NONNULL_END
 |