-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to remove / customize left / right buttons #1
Comments
FYI - I started this change. |
This turned into what feels like a complete hack... but it basically works.. https://github.com/chadkouse/RDRStickyKeyboardView I'm not sure using 2 copies of the view is the best route to take.. makes this kind of thing very difficult. |
Yes, i'm having the same problems customising it. I took a different approach, using swizzling (!) to change the |
I agree that with the current approach, customization is very hard. Before we improve it, we should decide on to what extent the control should be customizable. Would it be enough to make the buttons and textviews of one of the input views public (and subsequently synchronize changed properties with the dummy view)? |
+1 to your solution @datwelk |
Of course the same applies to customisation of the UITextView. |
Allright folks.. I finished a commit that allows for more customization. You can find it in the development branch (https://github.com/datwelk/RDRStickyKeyboardView/tree/development). It still needs some testing before being merged into master. I will now try to explain what I have done. The Now the great thing is that the If I believe this change forms a nice foundation on which we can build support for more extensive customizations, such as choosing whether or not to show the left and/or right buttons. Any thoughts? |
Hi @datwelk ! Could you merge this changes to master and also update Podspec file to incorporate this changes? Cheers |
I am afraid I can't merge it yet, since there's still room for improvement. For example, it is now impossible to customize one of the two input views differenty than the other. |
Hello thanks for the hard work. If it is stable enough of course ! |
+1 For temporarily comment out line 392 and add this two lines after line 390, can hide the leftButton. self.leftButton.hidden = YES;
visualFormat = @"H:|-(==hor)-[textView]-(==hor)-[rightButton]-(==hor)-|"; |
This is great, but I almost never need 2 buttons and it would be nice to be able to set a new button with my own style on it.
Do you have any interest in doing this or should I just make my own?
The text was updated successfully, but these errors were encountered: