Comments (6)
I'm not certain of what you are reporting. Do you want to resignFirstResponder when you open the menu?
from ghsidebarnav.
Yes, wanna hidden keyboard when open menu...
from ghsidebarnav.
Well, I'm going to assume you started with my demo code since you haven't given me any code to work with here...
In GHAppDelegate.m, the revealBlock is called when a user taps the menu button so you could add a line to dismiss the current responder before opening the menu like so:
RevealBlock revealBlock = ^(){
[self.revealController.view endEditing:YES]; // This is the line that will dismiss the current responder
[self.revealController toggleSidebar:!self.revealController.sidebarShowing
duration:kGHRevealSidebarDefaultAnimationDuration];
};
from ghsidebarnav.
thank you its work correctly when press to button (revealSidebar method).
but when use Gesture in Navigation (drag to right to open menu) the keyboard still appear...
from ghsidebarnav.
i added [self.view endEditing:YES]; to this method - (void)dragContentView:(UIPanGestureRecognizer *)panGesture and work correctly also..
thank you again 👍
from ghsidebarnav.
No problem; glad to help!
from ghsidebarnav.
Related Issues (20)
- How can this be used to present a modal view controller, or an action sheet? HOT 4
- NavigationController not added to stack for UIViewController that is 'pushed' HOT 1
- Strange Navigation Bar behavior with transitionFromViewController HOT 6
- Pan gesture to reveal sidebar not working
- Search result with variables HOT 10
- How to make view not clickable when open menu HOT 6
- Open/Close SidebarNav Swiping HOT 2
- SideBarNav wont disappear when clicking a search result HOT 1
- Reload View HOT 2
- Autoresizing Mask of Sidebar Controller HOT 1
- Problems with iOS 7 HOT 14
- UIStoryboardEmbedSegueTemplate HOT 6
- Pan gesture not working correctly in iOS7
- The UI is messed up in the Storyboard version
- Navigation button outside the sidebar HOT 5
- Search sometimes doesn't work
- Problems with iOS 7 HOT 2
- Refreshing GHSideBarNav HOT 1
- Reoad sidebarMenu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghsidebarnav.