jessesquires / jsqmessagesviewcontroller Goto Github PK
View Code? Open in Web Editor NEWAn elegant messages UI library for iOS
Home Page: https://www.jessesquires.com/blog/officially-deprecating-jsqmessagesviewcontroller/
License: Other
An elegant messages UI library for iOS
Home Page: https://www.jessesquires.com/blog/officially-deprecating-jsqmessagesviewcontroller/
License: Other
Hi @jessesquires - question for ya. How hard would it be to add people's faces next too each bubble. I really want to use this within my app - is there an easy way to do that without forking?
Thanks!
Tim
Now that the tableview is a private property of JSMessagesViewController, how can we reload data to add new messages that are received to the tableview? It seems like the closest thing is to call finishSend but that will clear any message the user has typed. Let me know if I'm just missing something. Thanks!
No cursor was showing up in the JSMessageTextView for ios7. I added this line into
- (id)initWithFrame:(CGRect)frame
{
...
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
self.tintColor = [UIColor blueColor];
}
}
and it seemed to fix the issue
I try to JSBubbleView subclass UITextView
Because I need to open Link when the message is a URL or copy the message using UITextView dataDetectorTypes.
But it doesn't work, how can I fix the problem
iOS 6.0 Simulator
Please add storyboard support.
I have an issue where my navigation bar is being hidden (set to -44 y origin).
I am assuming this has something to do with trying to implement with storyboard.
Hello!
How can I add a background static image in the chat list (to my JSMessagesViewController subclass)?
I tried setBackgroundColor with colorPattern but the image is very strange and moves with the scroll.
What I want is just a static background image (like whatsapp).
I tried addSubview and bringToBack but no success.
Any idea or suggestion?
Thanks in advance,
A simple "copy" by hold-tapping a bubble would be superb
How hard is it to add a button to the left of the text inputView? Basically like a load photo button.
Hi,
When i tap on the tableview i expect the keyboard to dismiss, unfortunately this is not happening. Is this feature implemented in the framework or did i do something wrong?
Please add ability to have avatars displayed next to the messages (i.e. Apple Messages App)
Jesse,
can you please add support for CocoaPods?
If you want, I will create a podspec and have it added to the CocoaPods Specs, but to do so I would need you to create a tag so that I can point the podspec to it.
Calman
Allow text input view to resize up to navigation bar (instead of only 5 lines)
In the case where the view is appearing for the first time, the tableview is not scrolling to the bottom. Although in JSMessagesViewControlller in viewwillappear there is a call to "[self scrollToBottomAnimated:NO]", since the data in the table has not yet been loaded, the table view has 0 rows at that point. Have you found any ways to work around this?
I have over 100 messages, for every conversation, what about paging enabled?
To fetch all messages from Core Data takes some time, and this cause performance issue.
Hello!
Is it possible to deactivate the send button? Because my logic takes a few seconds to connect to XMPP chat server. And I want to activate it when is connected.
Any idea or suggestion?
Thanks in advance.
Allow landscape mode for all devices.
It looks like you plan on doing it eventually since you've got an image for it already but it doesn't seem like its implemented. Please correct me if I'm wrong. I see you're making a lot of changes this week so if you don't get a chance to get to it, I'll try working on it after your changes seem to be slowing down. Thanks!
Please add the ability to add an image as a message (i.e. Apple Messages App MMS feature)
Hello!
Maybe this is a typo.
Docs say JSMessagesViewController subclasses UITableViewController but reading the code I see that actually subclasses UIViewController
The idea is to add JSBubbleMessageStyleCustom style and obtain images for bubbles from delegate. Something like
- (UIImage*)bubbleImageForMessageType:(JSBubbleMessageStyle)type selected:(BOOL)selected
.
(UIImage returned from this method should be already resizable.)
Can you add this?
So - using this awesome project as a container view so far has been great (something like a split view controller, buddies on the left, container view on the right).
It seems that depending on how I enter into the view, the text view will choose to auto-expand by 36 pixels even when there's no text actually entered. Example:
This then looks odder still when folding it back down:
If there's no text there, it can end up like this:
Finally, if one "Split"'s the keyboard, there's an interesting set of animations that result with the split keyboard disappearing altogether - but touching the text field will bring it back (so that's just for reference as I'm not sure what else could be desirable at that point).
In the latest pod:
I have absolutely no idea why this is - it was working fine a few days ago in my project.
[Did have some trouble with the JSMADismissiveTextView.h header aliases in the pod]
Any suggestions?
When using controller on Beta 4, the compose window becomes quite glitchy, particularly if the view is within a tab bar, messing with the new extended edges properties doesn't seem to have an impact.
Please Look at the letter "J", "i" or "Uii" , as you see, the bubbleView is not fit the letter.
And the worse situation is some time the bubbleView was clips the word string .....
when I scroll the screen several times, it happend.
I think it is a bug in it. (I am sorry about my poor English, it`s not my first language.)
when tapping on send, force the textfield to accept the auto-suggestion before submitting the message
JSDismissiveTextView is hiding the keyboard but it is not making it visible again in response to the UIKeyboardDidShowNotification.
To reproduce -
and what you should see is an missing keyboard and no pan gesture.
Thanks. [hope this isn't a pain to fix].
Are there plans to make this available through the CocoaPods Objective-C library management tool?
Ref:
http://www.cocoapods.org/
https://github.com/CocoaPods/Specs/wiki/Podspec-howto
Really liking how well this library works. A couple of things I have worked on for the project for one of my clients that required me to do some code changes. I'd like to merge back support for the following:
How in particular should we go about this? I'd like to first make sure you are OK with proposed ways of extending the API to support this, and then I can do mulitple PR for each of these. I think the most complicated is custom backgrounds, because we have to plumb through from the message view controller all the way down to the bubble view; and right now, we have a lot of static methods that create the various images, which we'd have to refactor.
Thanks.
I think this project should adopt a class prefix to avoid potential name clashes with other code bases, and to conform with Apple's conventions.
Your own classes should use three letter prefixes. These might relate to a combination of your company name and your app name, or even a specific component within your app. As an example, if your company were called Whispering Oak, and you were developing a game called Zebra Surprise, you might choose WZS or WOZ as your class prefix.
- iOS Documentation
This would involve renaming the project, and renaming all the classes.
Since this is his project, I'll leave choosing a prefix to @jessesquires
Hi,
I have tried to implement exactly the same behaviour of keyboard as in Messages and must say that's nearly impossible for variety of reasons (https://github.com/mikeahmarani/MADismissiveTextView for example)
The problem is the following:
So i suggest to use only swipe:) what do you think?
Looks like there is a slight height offset issue (the top of the tableview is going underneath the navbar). This only happends on ios7 and only after you have opened the keyboard. This is iPhone 4s, but I would guess it happends on 5's too.
For example, this picture is the demo app scrolled all the way up to the top:
Auto Correction is hidden in the textfield. You just see a blue line.
Add "To: " field like iOS Messages
Add data detectors like iOS. Just attempted this by adding UITextView
in the JSBubbleView
method drawRect:
, instead of using the UIStringDrawing
method. Ran into lots of issues with the UITextView
frame size, word wrapping, and truncating text.
Add placeholder text option
The UITextView
of JSMessageInputView
does not resize when pasting text.
Attempted to address this by implementing the delegate method - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text
but this did not work.
If the message content is a long string, it can not be displayed normally, how to solve the problem?
after pushing a new ViewController on the stack, if there's text in the input view, returning to the messages view (popping the previously pushed ViewController) causes the tableview insets to be calculated incorrectly
when paste 2 line words, input textview contentInset is wrong
when paste 5 line words, scrollbar of input textview do not show as expected
When pasting large amounts of text (over 5 lines), textView doesn't resize properly. After sending, sometimes textview doesn't resize. @zhigang1992 can you help?
The AvatarImage may not be ready at the first place...
There might be only an Avatar Address like most RESTful service.
Asking for AvatarImage may not as powerful as exposing the AvatarView
.
In which case, use can customize the UIImageView
more freely.
Like setting the Image
with SDWebImage
or AFNetworking
.
Custom the boarder, and maybe add a little title when black background in the lower third.
After all,
It's just my opinion.
Love this library! Would love to see some of the features used in the UIBubbleTableView library to make MessagesTableViewController a perfect copy of the Apple Messages app!
Hi, just wondering if you are considering updating the UI of the control to fit in with iOS 7?
It would be cool to support messages incoming from different people like iOS does for group messages. so the ability to add an author string to an incoming cell that will will display above or below an incoming message cell.
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.