FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
UIAResultDisplayController.h
Go to the documentation of this file.
1 //
2 // UIAResultDisplayController.h
3 // FoundationExtension
4 //
5 // Created by Jeong YunWon on 13. 3. 30..
6 // Copyright (c) 2013 youknowone.org. All rights reserved.
7 //
8 
9 #import <UIKit/UIKit.h>
10 
11 #if NS_BLOCKS_AVAILABLE
12 @protocol UIADimmingViewDelegate;
13 
17 @interface UIADimmingView : UIView
18 
22 @property(nonatomic, weak) IBOutlet id<UIADimmingViewDelegate> delegate;
23 
24 @end
25 
29 @protocol UIADimmingViewDelegate<NSObject>
30 
31 @optional
36 - (void)dimmingViewDidCancel:(UIADimmingView *)view;
37 
38 @end
39 
40 
41 @protocol UIAResultDisplayDelegate;
42 
51 @private
52  UIViewController *_contentsController;
53  UIADimmingView *_dimmingView;
54  UIView *_resultView;
55  id<UIAResultDisplayDelegate> _delegate;
56  struct {
57  unsigned int visible:1;
58  unsigned int animating:1;
59  unsigned int hidNavigationBar:1;
60  unsigned int navigationBarHidingEnabled:1;
61  unsigned int resultViewLoaded:1;
62  unsigned int delegateWillShowSearchResultView:1;
63  unsigned int delegateDidShowSearchResultView:1;
64  unsigned int delegateWillHideSearchResultView:1;
65  unsigned int delegateDidHideSearchResultView:1;
66  unsigned int delegateShouldShowDimmingView:1;
67  unsigned int delegateShouldReloadResultView:1;
68  unsigned int delegateReloadResultView:1;
69  } _resultDisplayControllerFlags;
70 }
71 
76 - (instancetype)initWithContentsController:(UIViewController *)viewController;
77 
82 - (void)reloadResult; // input
83 
87 @property(nonatomic,weak) IBOutlet id<UIAResultDisplayDelegate> delegate;
92 @property(nonatomic,strong) IBOutlet UIADimmingView *dimmingView;
93 
100 @property(nonatomic,getter=isActive) BOOL active;
107 - (void)setActive:(BOOL)visible animated:(BOOL)animated;
108 
113 @property(nonatomic,readonly) IBOutlet UIViewController *contentsController;
118 @property(nonatomic,weak) IBOutlet UIView *inputView; // this view must not be nil.
123 @property(nonatomic,strong) IBOutlet UIView *resultView;
124 
125 @end
126 
127 
128 /*
129  * @brief This protocol defines delegate methods for UIAResultDisplayController objects.
130  */
131 @protocol UIAResultDisplayDelegate <NSObject>
132 
133 @optional
134 
141 - (void)resultDisplayController:(UIAResultDisplayController *)controller didLoadResultView:(id)resultView;
148 - (void)resultDisplayController:(UIAResultDisplayController *)controller willUnloadResultView:(id)resultView;
155 - (void)resultDisplayController:(UIAResultDisplayController *)controller didUnloadResultView:(id)resultView;
156 
162 - (void)resultDisplayController:(UIAResultDisplayController *)controller willShowSearchResultView:(id)resultView;
168 - (void)resultDisplayController:(UIAResultDisplayController *)controller didShowSearchResultView:(id)resultView;
174 - (void)resultDisplayController:(UIAResultDisplayController *)controller willHideSearchResultView:(id)resultView;
180 - (void)resultDisplayController:(UIAResultDisplayController *)controller didHideSearchResultView:(id)resultView;
181 
188 - (BOOL)resultDisplayControllerHidesNavigationBar:(UIAResultDisplayController *)controller;
189 
196 - (UIView *)resultDisplayControllerLoadResultView:(UIAResultDisplayController *)controller; // first load
203 - (BOOL)resultDisplayControllerShouldShowDimmingView:(UIAResultDisplayController *)controller;
210 - (BOOL)resultDisplayControllerShouldReloadResultView:(UIAResultDisplayController *)controller;
216 - (void)resultDisplayController:(UIAResultDisplayController *)controller reloadResultView:(id)resultView;
223 - (void)resultDisplayController:(UIAResultDisplayController *)controller unloadResultView:(id)resultView;
224 
225 @end
226 #endif
This protocol defines delegate methods for UIDimmingView objects.
Definition: UIAResultDisplayController.h:29
A result display controller manages display of a input view and a result view that displays the resul...
Definition: UIAResultDisplayController.h:50
IBOutlet id< UIADimmingViewDelegate > delegate
The view's delegate.
Definition: UIAResultDisplayController.h:22
Definition: UIAResultDisplayController.h:131
A general dimming view to implement dimming like UISearchDisplayController is dimmed.
Definition: UIAResultDisplayController.h:17