-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Photo messages #76
Comments
Good idea. |
Seconded. |
documentation note : #16 has been closed as a duplicate of this. we can move that discussion here. |
Hey guys — this is definitely a goal of mine for this control. Unfortunately, I won't have enough time in the near future to implement this. Also, this is going to be overly complicated trying to support iOS 6 and 7 (just a heads up for anyone trying). I don't have an immediate need for this personally, but I would be willing to help out after this control drops support for iOS 6 (which will probably be next year sometime once iOS 7 adoption increases). Anyway, checkout the thread in #16 — a few decent references there. Also, you should check other forks of this project (though I'm not sure how well those are maintained). |
@jamieomatthews — I like your idea for having a My first thought is then to have a new datasource method I think the best, most modular solution would be for the datasource to provide a single method, For the drawing the actual view, this should be easy. You should be able to mask/crop the image as a bubble. If you look at the Also, if you're starting on this, please make a new branch on your fork and we can pull that branch in here later. That way, if I'm able to help out (or anyone else), we can do all of the work there without affecting master (and still pull in bug fixes and refinements). |
I require this functionality but am not an Objective-C developer (Im using MessagesTableViewController in a RubyMotion project). Therefore I have put up an oDesk project to attract developers interested in adding the functionality. https://www.odesk.com/jobs/Add-functionality-iMessage-style-iOS-control_~~76a19f159df997d0 |
@jessesquires , How do you suggest the following use case is handled in the JSMessagesViewDataSource / JSMessagesViewDelegate protocols? There are two types of photo bubbles. One normal, and one to represent video that will include a 'play button' mask. Protocol method(s) will be fired on tapping a bubble so the delegate can display the media. eg. JSMessagesViewDataSource: mediaTypeForRowAtIndexPath returning JSImage, JSVideo ? JSMessagesViewDelegate: bubblePressedAtIndexPath |
I would like to avoid using anymore enums. (Already more than I'd like.) To accommodate non-text messages, the best, most modular approach would be to provide a single datasource method, Separate (optional) delegates would be best: |
Also, this entire control should really be re-written to use |
Interpreting your suggestions, how does something like this plan:- JSMessagesViewDataSource Protocol will have new method dataForRowAtIndexPath returning JSMessageData new JSMessageData Class type - ( Text, Video, Image ) if JSMessageData.type == Text if JSMessageData.type == Image if JSMessageData.type == Video
|
Roughly speaking, (and leaving certain implementation details out) yeah that sounds pretty good. If you are starting work on this, please make a new feature branch, and push it to the main repo. That way, everyone involved can check on the progress, help in general, or help with bug fixes. :) If you need me to create a branch, I can do that too. (I may have to, I'm not sure if you can submit a PR with a new, non-existent branch.) |
I would like to contribute in this feature request, but I prefer to start by Forking the repo, modifying code away from original repo. and after finalizing the Feature I would ask about pull request, I will follow the discussion guidelines, Any discussion concerning the implementation will continue here. I would share the Forked Repo link, later today. |
@0xcodezero -- yes, exactly. But don't do the work on the |
Ok guys, I've created a new branch for this. You can either pull from upstream to work on this branch, or branch locally and submit your pull requests to this branch, not master. These changes need to happen in small iterations, so please submit multiple small PRs, not a single giant one. When it's ready, I'll merge this into master. :) |
…ure Header File ,Test Images, Attached Button Images
Hi guys, I'm very looking forward to this feature as well. Meanwhile I hope you can take the Issue #75 into consideration when you design this new feature, which means you have to have some class method to determine the cell (bubble view) height based on provided content without using data source. Or a nicer way to solve this issue. |
@powerqian -- I'm trying to find a nice solution to #75. :) @ Everyone -- supporting image messages is going to be much nicer/easier if we drop iOS 6 support. How important is iOS 6 for each of you? |
I am not concerned with support for any less than iOS7 |
I am only developing for ios7 and am not supporting ios<7 in my apps. |
Right now, its of medium importance to me. I think it would be nice if it had a fallback, even if it was limited in what it could do (IE, fixed size of the image, no masking), that would be nice. @jessesquires by this, do you mean that this whole project would go iOS7 only, or this feature would be ios7 only? |
@jamieomatthews -- the whole project. perhaps it's a bit too early for that. eventually though, this will happen. I'd also like to convert this to use a |
thanks for the quick feedback everyone! @jamieomatthews -- also, another thing to think about... when this feature is finally done and ready for release, how important will iOS6 be then? |
I am using this control for my app which needs to meet the requirement of the customers of my company, so actually I made changes to make this control support iOS 5 :(. If it convert to use |
@powerqian -- no worries! these major changes won't happen for awhile. :) |
agree with @jessesquires in regards to UICollectionView vs UITableView. This is the way regular SMS app works on ios7. The app we develop supports only ios7 + . So ios6 is not my concern right now.... Thanks |
Unfortunately we still need iOS6 support for this. On 2013-12-03, at 10:47 PM, Jesse Squires notifications@github.com wrote:
|
thanks @vladimirGI and @scottcc. @scottcc -- do you need iOS 6 support in general, or specifically with the image message feature? |
@ everyone — one last request, when you're finished with your apps that use this control, if they are public, please let me know so I can add them to the "Apps Using this Control" section of the README. :) |
We need general support for iOS6 for now - photo support is something we'd eventually like but not critical (yet :) I'd hate to do #ifdefs, or runtime checks, but it's something we're familiar with with a widely installed base of (private) users that upgrade on their own schedules. Heck, we have some applications that are still deployed and running on iOS 4.1 (not using your library though). ./scc On 2013-12-04, at 11:38 AM, Jesse Squires notifications@github.com wrote:
|
I've not been following this issue until now, but have plans to do this for our app that is in development. I had expected to get to it before now.. better late than never. =) Currently updating my project for the new main branch iOS 7 changes. (I really like the message bubble factory jesse, great job!) I'll be sure to reference the aforementioned branch for my development. Also we are iOS 7 only as the app is not yet released. |
@slycrel thanks! |
This branch will be renamed to issue76 as a candidate to pull for Image/Video photo bubbles implemented as discussed previously. https://github.com/0xcodezero/MessagesTableViewController/tree/media-support-JSMessage |
minor note, the branch should be called issue_76_photoMessages, not issue_75_photoMessages |
doh! just realized that i misnamed this feature branch. just changed: |
Why not create a 'CustomView' type to accept any subclass of UIView? That way actually one can create for any type of messages, photos, emotions, videos, even gifs and voice player. |
Hello again everyone! I want to "check the pulse" one more time regarding keeping support for iOS 6 for the photo messages feature. It looks like iOS 7 adoption rates are around ~75%. I've recently begun looking into TextKit (iOS 7+) and there are some awesome features (possibly to use for adding the photo inside the input message view like iMessages). Supporting iOS 6 for this control (for this feature and in general) is going to be a pain — and judging by iOS 7 adoption rates, increasingly unnecessary. (Not to mention all the baggage that can be removed!) It is extremely difficult for me to justify iOS 6 support, considering the above and the amount of time I have to dedicate to this project. So... unless there's a really, really, really, really good argument out there... :) I think I'll draft one final release keeping iOS 6 support and update the pod. |
I agree the extra amount of time and pain to support both iOS 6 and iOS 7, but unfortunately the App I write needs to meet the customers requirement :(. So please at least make a branch or have a tag, including a stable release that support iOS 6, so that I can still fork that branch. Probably in the future I need to rewrite all your "iOS 7 only" code to support iOS 6. |
great idea @powerqian ! i will definitely make a new, stable iOS 6 branch. :) |
+1 for the iOS 6 branch! Sounds like at least a couple of us might become iOS 6 maintainers.. ./scc
|
My app support for iOS7 only. I need this feature too. :) |
Hello all! Please see #172 |
Closing this issue. iOS6_support_stable branch available. |
For my app, we need to display photo messages in addition to the text messages. I was digging through the innards of the the project last night trying to figure out how I would do it (without completely hacking it). My reasoning for writing this issue is to first ask if you have begun working on this, and two, to try to get a methodology in place for how it should be done, so I can proceed.
One attempt might make the JSBubbleView class handle either text or an image. This would definitely take some factoring, but is possible.
Another attempt might be to to add a new subclass of UIView, something like ImageBubbleView or something, that would be very similar to JSBubbleView but would be only for images. In that case, the JSBubbleMessageCell will decide, based on its config, whether or not to create a JSBubbleView or a JSImageBubbleVIew.
A third idea might even be that somehow you expose drawing the content inside the bubble to the Delegate (or at least that you could return a view in the delegate), and then it would get measured and redrawn behind the scenes.
Has anyone started this process, or have some advice?
The text was updated successfully, but these errors were encountered: