An free version of an expandable input toolbar in the style of the native iPhone messages app
brandonhamilton / inputtoolbar Goto Github PK
View Code? Open in Web Editor NEWExpandable text input toolbar for iOS applications
License: MIT License
Expandable text input toolbar for iOS applications
License: MIT License
When view is used on iPad, the position of input field (UIExpandingTextView) is misaligned after autorotation.
It looks like it can be fixed with code like this
self.textView.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleWidth;
when setting up toolbar.
I didn't look further though to find a way to make input field wider when used on iPad screen.
It can be surely done by detecting device in runtime.
Hello,
Great work! is there a way to fix the send button to the bottom of the toolbar?
calling the [self.inputToolbar.textView becomeFirstResponder]; is not showing the keyboad automatically when the view is appeared so i wrote the code in
the place where the textview is allocated
[internalTextView becomeFirstResponder];
it works file in ios6 but not i ios7.
can any one please help me in solving the issue
-(void)inputButtonPressed
{
if ([delegate respondsToSelector:@selector(inputButtonPressed:)])
{
[delegate inputButtonPressed:self.textView.text];
}
/* Remove the keyboard and clear the text */
[self.textView resignFirstResponder]; // should be optional
[self.textView clearText]; // should be optional
}
it not works for ios7, will you fix it?
Anyone know how to enable copy paste within this UITextView?
Can't seem to come up with the solution, editable, userInteractionEnabled, responder chain...
Am probably missing something simple but would appreciate a hand.
Cheers
Nik
Maximum line high error ??
You mentioned about "This class is based on growingTextView" in UIExpandingTextView.m.
But there is no license display.
https://github.com/HansPinckaers/GrowingTextView/blob/master/LICENSE.txt
I think this project should include the GrowingTextView license above.
Thank you.
Hi, thanks for a great work!
I am trying to use input toolbar in universal app. It works fine on iPhone (both simulator and device), but on iPad I can't manage the same approach to work.
I simply add UIInputToolbar as a subview to my custom view, but on iPad it's displayed black and I can see some parts of "Send" text on the right. But then more comes, if I try to resize the view (by setting frame), that contains UIInputToolbar in its hierarchy, I got a crash like this:
'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 17.5]
This crash occurs only in simulator (iOS 5.1) but not on device, though on device I still have some black area instead of toolbar.
When enough text has been entered to cause the internalTextView to start scrolling, it's scroll area is larger than the textViewBackgroundImage
i.e.the appearance is that, the text is scrolling outside it's pseudo entry box. I assume it can be fixed by adjusting the contentSize property of the area
NB You can, probably should, set the scrollIndicatorInsets so they to appear within the "entry area" also
i love your work, but it could be cooler if you add option for enable secureTextEntry for the input field.
thanks
Hi,
when i click on the tool bar, keyboard is not appeared in iOS 11
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.