2017-02-17 23:30:49 +01:00
|
|
|
//
|
2018-03-20 15:03:49 +01:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2017-02-17 23:30:49 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface UIViewController (OWS)
|
|
|
|
|
2017-12-01 23:22:40 +01:00
|
|
|
- (UIViewController *)findFrontmostViewController:(BOOL)ignoringAlerts;
|
|
|
|
|
2017-03-22 22:43:52 +01:00
|
|
|
/**
|
|
|
|
* Takes up a bit less space than the default system back button
|
|
|
|
* used in the MessagesViewController to help left-align the title view.
|
|
|
|
*
|
2017-12-01 23:22:40 +01:00
|
|
|
* **note** Using this breaks the interactive pop gesture (swipe back) unless you set/unset the
|
2017-03-22 22:43:52 +01:00
|
|
|
* interactivePopGesture.delegate to self/nil on viewWillAppear/Disappear
|
|
|
|
*/
|
2017-02-17 23:30:49 +01:00
|
|
|
- (UIBarButtonItem *)createOWSBackButton;
|
|
|
|
|
2018-03-20 15:03:49 +01:00
|
|
|
+ (UIBarButtonItem *)createOWSBackButtonWithTarget:(id)target selector:(SEL)selector;
|
|
|
|
|
2017-02-17 23:30:49 +01:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|