Skip to content

Commit 514b37e

Browse files
fix issue #7 - keyboard show / hide support
1 parent 712f156 commit 514b37e

6 files changed

Lines changed: 218 additions & 153 deletions

File tree

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ WYPopoverController is for the presentation of content in popover on iPhone / iP
5858

5959
##### Gloss
6060

61-
![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_glossshadowcolor.png "glossShadowColor: #c3045e", glossShadowOffset: {0, 1.5}, glossShadowBlurRadius: 0") , ![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_glossshadowblurradius_2.png "glossShadowColor: #c3045e, glossShadowOffset: {0, 1.5}, glossShadowBlurRadius: 2") , ![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_glossshadowoffset_0-3.png "glossShadowColor: #c3045e, glossShadowOffset: {0, 3}, glossShadowBlurRadius: 0")
61+
![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_glossshadowcolor.png "glossShadowColor: #c3045e, glossShadowOffset: {0, 1.5}, glossShadowBlurRadius: 0") , ![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_glossshadowblurradius_2.png "glossShadowColor: #c3045e, glossShadowOffset: {0, 1.5}, glossShadowBlurRadius: 2") , ![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_glossshadowoffset_0-3.png "glossShadowColor: #c3045e, glossShadowOffset: {0, 3}, glossShadowBlurRadius: 0")
6262

6363
##### Outer
6464

@@ -156,6 +156,15 @@ UINavigationBar* appearance2 = [UINavigationBar appearanceWhenContainedIn:[UINav
156156
}
157157
```
158158

159+
### Handling popover controllers during orientation changes
160+
161+
When showing a popover controller, there are times when you will need to handle how the popover controller appears after a change in device orientation.
162+
163+
Situations when handling is required:
164+
165+
* If the popover controller is presented from a target rectangle using the `-presentPopoverFromRect:inView:permittedArrowDirections:animated` method of UIPopoverController.
166+
* If the popover controller is presented from a bar button item that is removed after the rotation has finished.
167+
159168
### Change logs
160169

161170
---

WYPopoverController/WYPopoverController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ typedef NS_OPTIONS(NSUInteger, WYPopoverArrowDirection) {
8787

8888
@property (nonatomic, assign) BOOL wantsDefaultContentAppearance;
8989
@property (nonatomic, assign) UIEdgeInsets popoverLayoutMargins;
90-
9190
@property (nonatomic, assign, readonly) BOOL isPopoverVisible;
91+
@property (nonatomic, strong, readonly) UIViewController* contentViewController;
9292

9393
- (id)initWithContentViewController:(UIViewController *)viewController;
9494

0 commit comments

Comments
 (0)